AttachmentIndexArray
Struct encapsulating a fixed list of attachment indices used when declaring native render passes.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public struct AttachmentIndexArray
Remarks
This fixed size struct allows for non-GC declaration of the required indices. Indices point into the attachment list as pass to CommandBuffer.BeginRenderPass
Additional Resources: CommandBuffer.BeginRenderPass.
Static Fields
Value | Description |
|---|---|
| Emtpy | Utility to declare an empty index array. |
| MaxAttachments | Maximum number of indices this struct can hold. This is directly tied to the maximum number of attachments in a native render pass (8). |
Constructors
Constructor | Description |
|---|---|
| AttachmentIndexArray(System.Int32) | Create and initialize a new AttachmentIndexArray. |
| AttachmentIndexArray(System.Int32[]) | Create and initialize a new AttachmentIndexArray. |
| AttachmentIndexArray(Unity.Collections.NativeArray{System.Int32}) | Create and initialize a new AttachmentIndexArray. |
Properties
Property | Description |
|---|---|
| Length | Number of elements in the AttachmentIndexArrayp. |