Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AttachmentIndexArray

Struct encapsulating a fixed list of attachment indices used when declaring native render passes.
Read time 1 minuteLast updated 4 days ago

Definition

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

EmtpyUtility to declare an empty index array.
MaxAttachmentsMaximum 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

LengthNumber of elements in the AttachmentIndexArrayp.