<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImmersiveMediaSupport",
  "identifier" : "/documentation/ImmersiveMediaSupport/ImmersiveVideoMask/init(layout:isInEquirectangularProjection:texture:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Immersive Media Support"
    ],
    "preciseIdentifier" : "s:21ImmersiveMediaSupport0A9VideoMaskV6layout29isInEquirectangularProjection7textureA2C6LayoutO_SbSo10MTLTexture_ptcfc"
  },
  "title" : "init(layout:isInEquirectangularProjection:texture:)"
}
-->

# init(layout:isInEquirectangularProjection:texture:)

Creates an immersive video mask object.

```
init(layout: ImmersiveVideoMask.Layout, isInEquirectangularProjection: Bool, texture: any MTLTexture)
```

## Parameters

`layout`

The layout of the mask within the texture. See [`ImmersiveVideoMask.Layout`](/documentation/ImmersiveMediaSupport/ImmersiveVideoMask/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)