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