Search Results for

    Show / Hide Table of Contents

    Struct ShaderDescription

    This struct represents all parameters required to create a new shader.

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

    Constructors

    ShaderDescription(ShaderStages, string, byte[])

    Initializes a new instance of the ShaderDescription struct.

    Declaration
    public ShaderDescription(ShaderStages stage, string entryPoint, byte[] shaderBytes)
    Parameters
    Type Name Description
    ShaderStages stage

    The shader stage.

    string entryPoint

    The entry point function.

    byte[] shaderBytes

    The shader code in bytes.

    Fields

    EntryPoint

    Gets the name of the entry point function.

    Declaration
    public readonly string EntryPoint
    Field Value
    Type Description
    string

    ShaderBytes

    Gets the raw shader code.

    Declaration
    public readonly byte[] ShaderBytes
    Field Value
    Type Description
    byte[]

    Stage

    Gets the shader stage.

    Declaration
    public readonly ShaderStages Stage
    Field Value
    Type Description
    ShaderStages

    Methods

    Equals(ShaderDescription)

    Determines whether the specified parameter is equal to this instance.

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

    The object to compare with.

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

    Implements the operator ==.

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

    The first value.

    ShaderDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operation.

    operator !=(ShaderDescription, ShaderDescription)

    Implements the operator ==.

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

    The first value.

    ShaderDescription 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