RDFramebufferPass
Framebuffer pass attachment description (used by RenderingDevice).
Framebuffer pass attachment description (used by RenderingDevice).
This class contains the list of attachment descriptions for a framebuffer pass. Each points with an index to a previously supplied list of texture attachments.
Multipass framebuffers can optimize some configurations in mobile. On desktop, they provide little to no advantage.
This object is used by RenderingDevice.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
RDFramebufferPassConstructor
public RDFramebufferPass();Properties5
ColorAttachmentsProperty
public int[] ColorAttachments { get; set; }Color attachments in order starting from 0. If this attachment is not used by the shader, pass ATTACHMENT_UNUSED to skip.
DepthAttachmentProperty
public int DepthAttachment { get; set; }Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass.
InputAttachmentsProperty
public int[] InputAttachments { get; set; }Used for multipass framebuffers (more than one render pass). Converts an attachment to an input. Make sure to also supply it properly in the RDUniform for the uniform set.
PreserveAttachmentsProperty
public int[] PreserveAttachments { get; set; }Attachments to preserve in this pass (otherwise they are erased).
ResolveAttachmentsProperty
public int[] ResolveAttachments { get; set; }If the color attachments are multisampled, non-multisampled resolve attachments can be provided.
Methods14
GetColorAttachmentsint[]
public int[] GetColorAttachments();int[]GetDepthAttachmentint
public int GetDepthAttachment();intGetInputAttachmentsint[]
public int[] GetInputAttachments();int[]GetPreserveAttachmentsint[]
public int[] GetPreserveAttachments();int[]GetResolveAttachmentsint[]
public int[] GetResolveAttachments();int[]SetColorAttachments2 overloads
public void SetColorAttachments(int[] pMember);| Name | Type | Default |
|---|---|---|
pMember | int[] | — |
public void SetColorAttachments(ReadOnlySpan<int> pMember);| Name | Type | Default |
|---|---|---|
pMember | ReadOnlySpan<int> | — |
SetDepthAttachmentvoid
public void SetDepthAttachment(int pMember);| Name | Type | Default |
|---|---|---|
pMember | int | — |
SetInputAttachments2 overloads
public void SetInputAttachments(int[] pMember);| Name | Type | Default |
|---|---|---|
pMember | int[] | — |
public void SetInputAttachments(ReadOnlySpan<int> pMember);| Name | Type | Default |
|---|---|---|
pMember | ReadOnlySpan<int> | — |
SetPreserveAttachments2 overloads
public void SetPreserveAttachments(int[] pMember);| Name | Type | Default |
|---|---|---|
pMember | int[] | — |
public void SetPreserveAttachments(ReadOnlySpan<int> pMember);| Name | Type | Default |
|---|---|---|
pMember | ReadOnlySpan<int> | — |
SetResolveAttachments2 overloads
public void SetResolveAttachments(int[] pMember);| Name | Type | Default |
|---|---|---|
pMember | int[] | — |
public void SetResolveAttachments(ReadOnlySpan<int> pMember);| Name | Type | Default |
|---|---|---|
pMember | ReadOnlySpan<int> | — |
Fields and constants1
AttachmentUnusedField
public const long AttachmentUnused = -1;Attachment is unused.