init(layout:isInEquirectangularProjection:texture:)
Creates an immersive video mask object.
Declaration
init(layout: ImmersiveVideoMask.Layout, isInEquirectangularProjection: Bool, texture: any MTLTexture)Parameters
- layout:
The layout of the mask within the texture. See Layout Swift.enum 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.