Struct FramebufferDescription
Describes a Framebuffer, for creation using a ResourceFactory.
Implements
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct FramebufferDescription : IEquatable<FramebufferDescription>
Constructors
FramebufferDescription(Nullable<FramebufferAttachmentDescription>, FramebufferAttachmentDescription[])
Constructs a new FramebufferDescription.
Declaration
public FramebufferDescription(FramebufferAttachmentDescription? depthTarget, FramebufferAttachmentDescription[] colorTargets)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<FramebufferAttachmentDescription> | depthTarget | A description of the depth attachment. May be null if no depth attachment will be used. |
FramebufferAttachmentDescription[] | colorTargets | An array of descriptions of color attachments. May be empty if no color attachments will be used. |
FramebufferDescription(Texture, Texture[])
Constructs a new FramebufferDescription.
Declaration
public FramebufferDescription(Texture depthTarget, params Texture[] colorTargets)
Parameters
Type | Name | Description |
---|---|---|
Texture | depthTarget | The depth texture, which must have been created with DepthStencil usage flags. May be null. |
Texture[] | colorTargets | An array of color textures, all of which must have been created with RenderTarget usage flags. May be null or empty. |
Fields
ColorTargets
An array of color textures, all of which must have been created with RenderTarget usage flags. May be null or empty.
Declaration
public FramebufferAttachmentDescription[] ColorTargets
Field Value
Type | Description |
---|---|
FramebufferAttachmentDescription[] |
DepthTarget
The depth texture, which must have been created with DepthStencil usage flags. May be null.
Declaration
public FramebufferAttachmentDescription? DepthTarget
Field Value
Type | Description |
---|---|
System.Nullable<FramebufferAttachmentDescription> |
Methods
Equals(FramebufferDescription)
Element-wise equality.
Declaration
public bool Equals(FramebufferDescription other)
Parameters
Type | Name | Description |
---|---|---|
FramebufferDescription | other | The instance to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if all elements and all array elements are equal; false otherswise. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |