Struct FramebufferAttachmentDescription
Describes a single attachment (color or depth) for a Framebuffer.
Implements
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct FramebufferAttachmentDescription : IEquatable<FramebufferAttachmentDescription>
Constructors
FramebufferAttachmentDescription(Texture, UInt32)
Constructs a new FramebufferAttachmentDescription.
Declaration
public FramebufferAttachmentDescription(Texture target, uint arrayLayer)
Parameters
Type | Name | Description |
---|---|---|
Texture | 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. |
System.UInt32 | arrayLayer | The array layer to render to. This value must be less than ArrayLayers in the target Texture. |
FramebufferAttachmentDescription(Texture, UInt32, UInt32)
Constructs a new FramebufferAttachmentDescription.
Declaration
public FramebufferAttachmentDescription(Texture target, uint arrayLayer, uint mipLevel)
Parameters
Type | Name | Description |
---|---|---|
Texture | 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. |
System.UInt32 | arrayLayer | The array layer to render to. This value must be less than ArrayLayers in the target Texture. |
System.UInt32 | mipLevel | 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.
Declaration
public uint ArrayLayer
Field Value
Type | Description |
---|---|
System.UInt32 |
MipLevel
Declaration
public uint MipLevel
Field Value
Type | Description |
---|---|
System.UInt32 |
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.
Declaration
public Texture Target
Field Value
Type | Description |
---|---|
Texture |
Methods
Equals(FramebufferAttachmentDescription)
Element-wise equality.
Declaration
public bool Equals(FramebufferAttachmentDescription other)
Parameters
Type | Name | Description |
---|---|---|
FramebufferAttachmentDescription | 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. |