<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/View",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@S@cp_view_t"
  },
  "title" : "LayerRenderer.Drawable.View"
}
-->

# LayerRenderer.Drawable.View

A type that provides information on how to render content into the frame’s textures.

```
struct View
```

## Overview

Compositor Services provides a view for each distinct render viewpoint. For example, a head-mounted display typically contains two views: one for each eye. Use the information in the views to set up your render pass descriptor, or to determine which part of a texture to fill with content.

## Topics

### Getting the view’s texture map

[`var textureMap: LayerRenderer.Drawable.View.TextureMap`](/documentation/CompositorServices/LayerRenderer/Drawable/View/textureMap-swift.property)

The texture map for a view.

[`struct TextureMap`](/documentation/CompositorServices/LayerRenderer/Drawable/View/TextureMap-swift.struct)

A type that provides details about the textures associated with a view.

### Getting the transformations

[`var transform: simd_float4x4`](/documentation/CompositorServices/LayerRenderer/Drawable/View/transform)

The transformation matrix that converts between the device’s coordinate space
to the position of the view in that space.

[`var tangents: simd_float4`](/documentation/CompositorServices/LayerRenderer/Drawable/View/tangents)

The tangent values for the angles you use to determine the planes of the viewing frustum.

### Creating a view

[`init()`](/documentation/CompositorServices/LayerRenderer/Drawable/View/init())

Creates a view type.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)