文档

Unity Engine

Unity Engine

SetRenderPassData(int, NativeArray<AttachmentDescriptor>, NativeArray<SubPassDescriptor>, int, int, int)

Sets the relevant graphics state fields according to the provided render pass data.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void SetRenderPassData(int samples, NativeArray<AttachmentDescriptor> attachments, NativeArray<SubPassDescriptor> subPasses, int subPassIndex = 0, int depthAttachmentIndex = -1, int shadingRateIndex = -1)

Parameters

samples


Array of color attachments used in this rendering configuration.

Array containing information of each subpass.

subPassIndex

Index of the active subpass in this rendering configuration.

depthAttachmentIndex

The index of the attachment to be used as the depth/stencil buffer for this rendering configuration.

shadingRateIndex

Index of attachment used as shading rate image.