Struct OutputDescription
Describes a set of output attachments and their formats.
Implements
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct OutputDescription : IEquatable<OutputDescription>
Constructors
OutputDescription(Nullable<OutputAttachmentDescription>, OutputAttachmentDescription[])
Constructs a new OutputDescription.
Declaration
public OutputDescription(OutputAttachmentDescription? depthAttachment, params OutputAttachmentDescription[] colorAttachments)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<OutputAttachmentDescription> | depthAttachment | A description of the depth attachment. |
OutputAttachmentDescription[] | colorAttachments | An array of descriptions of each color attachment. |
OutputDescription(Nullable<OutputAttachmentDescription>, OutputAttachmentDescription[], TextureSampleCount)
Constructs a new OutputDescription.
Declaration
public OutputDescription(OutputAttachmentDescription? depthAttachment, OutputAttachmentDescription[] colorAttachments, TextureSampleCount sampleCount)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<OutputAttachmentDescription> | depthAttachment | A description of the depth attachment. |
OutputAttachmentDescription[] | colorAttachments | An array of descriptions of each color attachment. |
TextureSampleCount | sampleCount | The number of samples in each target attachment. |
Fields
ColorAttachments
An array of attachment descriptions, one for each color attachment. May be empty.
Declaration
public OutputAttachmentDescription[] ColorAttachments
Field Value
Type | Description |
---|---|
OutputAttachmentDescription[] |
DepthAttachment
A description of the depth attachment, or null if none exists.
Declaration
public OutputAttachmentDescription? DepthAttachment
Field Value
Type | Description |
---|---|
System.Nullable<OutputAttachmentDescription> |
SampleCount
The number of samples in each target attachment.
Declaration
public TextureSampleCount SampleCount
Field Value
Type | Description |
---|---|
TextureSampleCount |
Methods
Equals(OutputDescription)
Element-wise equality.
Declaration
public bool Equals(OutputDescription other)
Parameters
Type | Name | Description |
---|---|---|
OutputDescription | other | The instance to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if all elements and all array elements are equal; false otherswise. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |