Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Sets the relevant graphics state fields according to the provided render pass data.
Read time 1 minuteLast updated 5 days ago

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.