Table of Contents

Struct FramebufferDescription

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Describes a Framebuffer, for creation using a ResourceFactory.

public struct FramebufferDescription : IEquatable<FramebufferDescription>
Implements
Inherited Members

Constructors

FramebufferDescription(Texture, params Texture[])

Constructs a new FramebufferDescription.

public FramebufferDescription(Texture depthTarget, params Texture[] colorTargets)

Parameters

depthTarget Texture

The depth texture, which must have been created with DepthStencil usage flags. May be null.

colorTargets Texture[]

An array of color textures, all of which must have been created with RenderTarget usage flags. May be null or empty.

FramebufferDescription(FramebufferAttachmentDescription?, FramebufferAttachmentDescription[])

Constructs a new FramebufferDescription.

public FramebufferDescription(FramebufferAttachmentDescription? depthTarget, FramebufferAttachmentDescription[] colorTargets)

Parameters

depthTarget FramebufferAttachmentDescription?

A description of the depth attachment. May be null if no depth attachment will be used.

colorTargets FramebufferAttachmentDescription[]

An array of descriptions of color attachments. May be empty if no color attachments will be used.

Fields

ColorTargets

An array of color textures, all of which must have been created with RenderTarget usage flags. May be null or empty.

public FramebufferAttachmentDescription[] ColorTargets

Field Value

FramebufferAttachmentDescription[]

DepthTarget

The depth texture, which must have been created with DepthStencil usage flags. May be null.

public FramebufferAttachmentDescription? DepthTarget

Field Value

FramebufferAttachmentDescription?

Methods

Equals(FramebufferDescription)

Element-wise equality.

public bool Equals(FramebufferDescription other)

Parameters

other FramebufferDescription

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.