Search Results for

    Show / Hide Table of Contents

    Struct FrameBufferAttachment

    Contains properties that describe a framebuffer texture attachment description.

    Implements
    IEquatable<FrameBufferAttachment>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public struct FrameBufferAttachment : IEquatable<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 attachment 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 mipLevel 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 mipLevel.

    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 compute the specify slide inside the texture.

    uint faceIndex

    The face index to compute the specify slide 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 attachment.

    Declaration
    public Texture AttachmentTexture
    Field Value
    Type Description
    Texture
    Remarks

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

    MipSlice

    The selected MipLevel.

    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

    Other used 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 like 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 value1.

    FrameBufferAttachment value2

    The value2.

    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

    The value1.

    FrameBufferAttachment value2

    The value2.

    Returns
    Type Description
    bool

    The result of the operator.

    Implements

    IEquatable<T>

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX