Show / Hide Table of Contents

Struct FramebufferAttachmentDescription

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

Implements
System.IEquatable<FramebufferAttachmentDescription>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
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

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

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.

Overrides
System.ValueType.GetHashCode()

Implements

System.IEquatable<T>
Back to top