Search Results for

    Show / Hide Table of Contents

    Struct LayoutElementDescription

    This class represent a shader resource binding;.

    Implements
    IEquatable<LayoutElementDescription>
    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 LayoutElementDescription : IEquatable<LayoutElementDescription>

    Constructors

    LayoutElementDescription(uint, ResourceType, ShaderStages, bool, uint)

    Initializes a new instance of the LayoutElementDescription struct.

    Declaration
    public LayoutElementDescription(uint slot, ResourceType type, ShaderStages stages, bool allowDynamicOffset = false, uint size = 0)
    Parameters
    Type Name Description
    uint slot

    The resource slot.

    ResourceType type

    The resource type.

    ShaderStages stages

    The stages where this resource will be available.

    bool allowDynamicOffset

    Allow specifying dynamic offset. Only valid on Constant Buffers.

    uint size

    If it is greater than 0, it overrides the size of this resource (in bytes). Only valid on Constant Buffers.

    Fields

    AllowDynamicOffset

    Gets a value indicating whether this resource allow dynamic offset. Its used in some graphics backend to allow specifying dynamic offset.

    Declaration
    public readonly bool AllowDynamicOffset
    Field Value
    Type Description
    bool

    Range

    If it is greater than 0, it overrides the size of this resource (in bytes). Only valid on Constant Buffers.

    Declaration
    public readonly uint Range
    Field Value
    Type Description
    uint

    Slot

    Gets the resource slot.

    Declaration
    public readonly uint Slot
    Field Value
    Type Description
    uint

    Stages

    Gets the resource shader stage.

    Declaration
    public readonly ShaderStages Stages
    Field Value
    Type Description
    ShaderStages

    Type

    Gets the shader resource type.

    Declaration
    public readonly ResourceType Type
    Field Value
    Type Description
    ResourceType

    Methods

    Equals(LayoutElementDescription)

    Returns a hash code for this instance.

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

    Other used to compare.

    Returns
    Type Description
    bool

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

    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 ==(LayoutElementDescription, LayoutElementDescription)

    Implements the operator ==.

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

    The value1.

    LayoutElementDescription value2

    The value2.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(LayoutElementDescription, LayoutElementDescription)

    Implements the operator ==.

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

    The value1.

    LayoutElementDescription 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