Search Results for

    Show / Hide Table of Contents

    Struct FrameBufferAttachment

    Contains properties that describe a framebuffer texture attachment.

    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public struct FrameBufferAttachment

    Constructors

    FrameBufferAttachment(Texture, Texture)

    Initializes a new instance of the FrameBufferAttachment struct.

    Declaration
    public FrameBufferAttachment(Texture attachedTexture, Texture resolvedTexture)
    Parameters
    Type Name Description
    Texture attachedTexture

    The attached texture.

    Texture resolvedTexture

    The resolved texture.

    FrameBufferAttachment(Texture, uint, Texture, uint, uint, uint)

    Initializes a new instance of the FrameBufferAttachment struct.

    Declaration
    public FrameBufferAttachment(Texture attachedTexture, uint attachedFirstSlice, Texture resolvedTexture, uint resolvedFirstSlice, uint sliceCount, uint mipLevel)
    Parameters
    Type Name Description
    Texture attachedTexture

    The attachment texture.

    uint attachedFirstSlice

    The first slice.

    Texture resolvedTexture

    The resolved texture.

    uint resolvedFirstSlice

    The first slice on the resolved texture.

    uint sliceCount

    The slice count on the resolved texture.

    uint mipLevel

    The selected mip level on the resolved texture.

    FrameBufferAttachment(Texture, uint, uint, uint)

    Initializes a new instance of the FrameBufferAttachment struct.

    Declaration
    public FrameBufferAttachment(Texture attachedTexture, uint firstSlice, uint sliceCount, uint mipLevel = 0)
    Parameters
    Type Name Description
    Texture attachedTexture

    The attachment texture.

    uint firstSlice

    The first slice.

    uint sliceCount

    The slice count.

    uint mipLevel

    The selected mip level.

    FrameBufferAttachment(Texture, uint, uint, uint, uint)

    Initializes a new instance of the FrameBufferAttachment struct.

    Declaration
    public FrameBufferAttachment(Texture attachedTexture, uint arrayIndex, uint faceIndex, uint sliceCount, uint mipLevel)
    Parameters
    Type Name Description
    Texture attachedTexture

    The attachment texture.

    uint arrayIndex

    The array index to specify the slice inside the texture.

    uint faceIndex

    The face index to specify the slice inside the texture.

    uint sliceCount

    The slice count.

    uint mipLevel

    The selected mipLevel.

    Fields

    AttachedFirstSlice

    The selected array slice.

    Declaration
    public uint AttachedFirstSlice
    Field Value
    Type Description
    uint

    AttachmentTexture

    The attachment texture. This is the texture used by the framebuffer as an attachment.

    Declaration
    public Texture AttachmentTexture
    Field Value
    Type Description
    Texture
    Remarks

    If this texture has MSAA enabled, you can set the ResolvedTexture field with a non-MSAA texture. After the EndRenderPass, this texture will be resolved into that.

    MipSlice

    The selected mip level.

    Declaration
    public uint MipSlice
    Field Value
    Type Description
    uint

    ResolvedFirstSlice

    The selected array slice.

    Declaration
    public uint ResolvedFirstSlice
    Field Value
    Type Description
    uint

    ResolvedTexture

    The resolved texture. If the source texture has MSAA enabled, in the EndRenderPass, this texture is resolved into this texture.

    Declaration
    public Texture ResolvedTexture
    Field Value
    Type Description
    Texture

    SliceCount

    The number of slices to attach.

    Declaration
    public uint SliceCount
    Field Value
    Type Description
    uint

    Properties

    FirstSlice

    Gets the selected array slice of the texture used as a shader resource.

    Declaration
    public uint FirstSlice { get; }
    Property Value
    Type Description
    uint

    Texture

    Gets the texture used as a shader resource.

    Declaration
    public Texture Texture { get; }
    Property Value
    Type Description
    Texture

    Methods

    Equals(FrameBufferAttachment)

    Determines whether the specified parameter is equal to this instance.

    Declaration
    public bool Equals(FrameBufferAttachment other)
    Parameters
    Type Name Description
    FrameBufferAttachment other

    The object to compare.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Equals(object)

    Determines whether the specified object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures such as a hash table.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(FrameBufferAttachment, FrameBufferAttachment)

    Implements the == operator.

    Declaration
    public static bool operator ==(FrameBufferAttachment value1, FrameBufferAttachment value2)
    Parameters
    Type Name Description
    FrameBufferAttachment value1

    The first value.

    FrameBufferAttachment value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(FrameBufferAttachment, FrameBufferAttachment)

    Implements the operator ==.

    Declaration
    public static bool operator !=(FrameBufferAttachment value1, FrameBufferAttachment value2)
    Parameters
    Type Name Description
    FrameBufferAttachment value1

    Value 1.

    FrameBufferAttachment value2

    Value 2.

    Returns
    Type Description
    bool

    The result of the operator.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX