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
depthTargetTextureThe depth texture, which must have been created with DepthStencil usage flags. May be null.
colorTargetsTexture[]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
depthTargetFramebufferAttachmentDescription?A description of the depth attachment. May be null if no depth attachment will be used.
colorTargetsFramebufferAttachmentDescription[]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
DepthTarget
The depth texture, which must have been created with DepthStencil usage flags. May be null.
public FramebufferAttachmentDescription? DepthTarget
Field Value
Methods
Equals(FramebufferDescription)
Element-wise equality.
public bool Equals(FramebufferDescription other)
Parameters
otherFramebufferDescriptionThe 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.