Table of Contents

Struct FramebufferAttachmentDescription

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Describes a single attachment (color or depth) for a Framebuffer.

public struct FramebufferAttachmentDescription : IEquatable<FramebufferAttachmentDescription>
Implements
Inherited Members

Constructors

FramebufferAttachmentDescription(Texture, uint)

Constructs a new FramebufferAttachmentDescription.

public FramebufferAttachmentDescription(Texture target, uint arrayLayer)

Parameters

target Texture

The target texture to render into. For color attachments, this resource must have been created with the RenderTarget flag. For depth attachments, this resource must have been created with the DepthStencil flag.

arrayLayer uint

The array layer to render to. This value must be less than ArrayLayers in the target Texture.

FramebufferAttachmentDescription(Texture, uint, uint)

Constructs a new FramebufferAttachmentDescription.

public FramebufferAttachmentDescription(Texture target, uint arrayLayer, uint mipLevel)

Parameters

target Texture

The target texture to render into. For color attachments, this resource must have been created with the RenderTarget flag. For depth attachments, this resource must have been created with the DepthStencil flag.

arrayLayer uint

The array layer to render to. This value must be less than ArrayLayers in the target Texture.

mipLevel uint

The mip level to render to. This value must be less than MipLevels in the target Texture.

Fields

ArrayLayer

The array layer to render to. This value must be less than ArrayLayers in the target Texture.

public uint ArrayLayer

Field Value

uint

MipLevel

The mip level to render to. This value must be less than MipLevels in the target Texture.

public uint MipLevel

Field Value

uint

Target

The target texture to render into. For color attachments, this resource must have been created with the RenderTarget flag. For depth attachments, this resource must have been created with the DepthStencil flag.

public Texture Target

Field Value

Texture

Methods

Equals(FramebufferAttachmentDescription)

Element-wise equality.

public bool Equals(FramebufferAttachmentDescription other)

Parameters

other FramebufferAttachmentDescription

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.