A video mask to smooth the edges of the mesh during video rendering.
This type holds the generated video mask texture and its relevant information.
Members (4)
get · iOS 26.4+
isInEquirectangularProjection
TypeScript
get isInEquirectangularProjection(): boolean
Swift declaration
var isInEquirectangularProjection: Bool { get }
A Boolean value that indicates whether the generated mask texture is in equirectangular projection space.
If `true`, the app renderer needs to transform vertices of the mesh to equirectangular projection space to generate UVs to access the mask texture.
init(layout: ImmersiveVideoMask.Layout, isInEquirectangularProjection: Bool, texture: any MTLTexture)
Creates an immersive video mask object.
- Parameters:
- layout: The layout of the mask within the texture. See ``Layout`` for valid options.
- isInEquirectangularProjection: A Boolean value that indicates whether the generated mask texture is in equirectangular projection space.
- texture: The MTLTexture containing the mask ready for rendering.
get · iOS 26.4+
layout
TypeScript
get layout(): ImmersiveVideoMask_Layout
Swift declaration
var layout: ImmersiveVideoMask.Layout { get }
The layout of this mask, see ``Layout-swift.enum`` for more details.