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
targetTextureThe 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.
arrayLayeruintThe 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
targetTextureThe 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.
arrayLayeruintThe array layer to render to. This value must be less than ArrayLayers in the target Texture.
mipLeveluintThe 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
MipLevel
public uint MipLevel
Field Value
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
Methods
Equals(FramebufferAttachmentDescription)
Element-wise equality.
public bool Equals(FramebufferAttachmentDescription other)
Parameters
otherFramebufferAttachmentDescriptionThe 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.