Search Results for

    Show / Hide Table of Contents

    Class InputLayouts

    This class contains the descriptions of vertex input layout.

    Inheritance
    object
    InputLayouts
    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public class InputLayouts

    Constructors

    InputLayouts()

    Initializes a new instance of the InputLayouts class.

    Declaration
    public InputLayouts()

    Fields

    LayoutElements

    The vertex input elements.

    Declaration
    public List<LayoutDescription> LayoutElements
    Field Value
    Type Description
    List<LayoutDescription>

    Methods

    Add(LayoutDescription)

    Adds a new layout.

    Declaration
    public InputLayouts Add(LayoutDescription layout)
    Parameters
    Type Name Description
    LayoutDescription layout

    Layout description.

    Returns
    Type Description
    InputLayouts

    My own instance.

    Clean()

    Cleans the object.

    Declaration
    public void Clean()

    Equals(InputLayouts)

    Returns a hash code for this instance.

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

    Used for comparison.

    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
    object.Equals(object)

    FindLayoutElementByUsage(ElementSemanticType, int, out ElementDescription, out int)

    Finds a layout element description by its usage semantic.

    Declaration
    public bool FindLayoutElementByUsage(ElementSemanticType semantic, int semanticIndex, out ElementDescription elementDescription, out int vertexBufferIndex)
    Parameters
    Type Name Description
    ElementSemanticType semantic

    The element semantic.

    int semanticIndex

    The semantic index.

    ElementDescription elementDescription

    The element description.

    int vertexBufferIndex

    The vertex buffer index.

    Returns
    Type Description
    bool

    True if the input layout contains an element with the specified semantic and index. False otherwise.

    FindLayoutElementsByUsage(ElementSemanticType, out ElementDescription[], out int[])

    Finds all the layout elements description. by its usage semantic.

    Declaration
    public bool FindLayoutElementsByUsage(ElementSemanticType semantic, out ElementDescription[] elements, out int[] vertexBufferIndices)
    Parameters
    Type Name Description
    ElementSemanticType semantic

    The element semantic.

    ElementDescription[] elements

    The elements description.

    int[] vertexBufferIndices

    The vertex buffer indices.

    Returns
    Type Description
    bool

    True if the input layout contains elements with the specified semantic. False otherwise.

    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
    object.GetHashCode()

    IsAssignable(InputLayouts)

    Determines if the current layout is assignable to the parameter input layout.

    Declaration
    public bool IsAssignable(InputLayouts inputLayouts)
    Parameters
    Type Name Description
    InputLayouts inputLayouts

    The input layouts.

    Returns
    Type Description
    bool

    Whether the specified layout is compatible.

    Read(BinaryReader)

    Reads InputLayouts from binary file.

    Declaration
    public static InputLayouts Read(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader.

    Returns
    Type Description
    InputLayouts

    The read inputLayouts.

    TryGetSlot(ElementSemanticType, uint, out int)

    Tries to get the attribute slot by semantic and semantic index.

    Declaration
    public bool TryGetSlot(ElementSemanticType semantic, uint semanticIndex, out int slot)
    Parameters
    Type Name Description
    ElementSemanticType semantic

    Attribute semantic type.

    uint semanticIndex

    Attribute semantic index.

    int slot

    Attribute slot.

    Returns
    Type Description
    bool

    True if the attribute is found; false otherwise.

    Write(BinaryWriter)

    Writes InputLayouts to a binary file.

    Declaration
    public void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The binary writer.

    Operators

    operator ==(InputLayouts, InputLayouts)

    Implements the operator ==.

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

    The first value.

    InputLayouts value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(InputLayouts, InputLayouts)

    Implements the == operator.

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

    The first value.

    InputLayouts value2

    The second value.

    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