Table of Contents

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

depthAttachment OutputAttachmentDescription?

A description of the depth attachment.

colorAttachments OutputAttachmentDescription[]

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

depthAttachment OutputAttachmentDescription?

A description of the depth attachment.

colorAttachments OutputAttachmentDescription[]

An array of descriptions of each color attachment.

sampleCount TextureSampleCount

The 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

OutputAttachmentDescription[]

DepthAttachment

A description of the depth attachment, or null if none exists.

public OutputAttachmentDescription? DepthAttachment

Field Value

OutputAttachmentDescription?

SampleCount

The number of samples in each target attachment.

public TextureSampleCount SampleCount

Field Value

TextureSampleCount

Methods

Equals(OutputDescription)

Element-wise equality.

public bool Equals(OutputDescription other)

Parameters

other OutputDescription

The 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.