Search Results for

    Show / Hide Table of Contents

    Class Shader

    This class represents a single shader program.

    Inheritance
    object
    GraphicsResource
    Shader
    DX11Shader
    DX12Shader
    MTLShader
    GLShader
    VKShader
    WGPUShader
    Inherited Members
    GraphicsResource.disposed
    GraphicsResource.Context
    GraphicsResource.NativePointer
    GraphicsResource.Disposed
    GraphicsResource.Dispose()
    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public abstract class Shader : GraphicsResource

    Constructors

    Shader(GraphicsContext, ref ShaderDescription)

    Initializes a new instance of the Shader class.

    Declaration
    protected Shader(GraphicsContext context, ref ShaderDescription description)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context.

    ShaderDescription description

    The shader description.

    Fields

    Description

    Gets the shader's description.

    Declaration
    public readonly ShaderDescription Description
    Field Value
    Type Description
    ShaderDescription

    Properties

    Name

    Gets or sets a string identifying this instance. Can be used in graphics debugger tools.

    Declaration
    public abstract string Name { get; set; }
    Property Value
    Type Description
    string

    Methods

    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 hash tables.

    Overrides
    object.GetHashCode()

    Extension Methods

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