Search Results for

    Show / Hide Table of Contents

    Class DX11Shader

    This class represent a native instance of a DirectX shader.

    Inheritance
    object
    GraphicsResource
    Shader
    DX11Shader
    Implements
    IDisposable
    Inherited Members
    Shader.Description
    Shader.GetHashCode()
    GraphicsResource.disposed
    GraphicsResource.Context
    GraphicsResource.Disposed
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.DirectX11
    Assembly: Evergine.DirectX11.dll
    Syntax
    public class DX11Shader : Shader, IDisposable

    Constructors

    DX11Shader(GraphicsContext, ref ShaderDescription)

    Initializes a new instance of the DX11Shader class.

    Declaration
    public DX11Shader(GraphicsContext context, ref ShaderDescription description)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context.

    ShaderDescription description

    The shader description.

    Fields

    NativeShader

    The DirectX shader instance.

    Declaration
    public readonly ID3D11DeviceChild NativeShader
    Field Value
    Type Description
    ID3D11DeviceChild

    Properties

    Name

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

    Declaration
    public override string Name { get; set; }
    Property Value
    Type Description
    string
    Overrides
    Shader.Name

    NativePointer

    Gets the native pointer.

    Declaration
    public override IntPtr NativePointer { get; }
    Property Value
    Type Description
    IntPtr
    Overrides
    GraphicsResource.NativePointer

    Methods

    Dispose()

    Dispose this instance.

    Declaration
    public override void Dispose()
    Overrides
    GraphicsResource.Dispose()

    ShaderCompile(GraphicsContext, string, string, ShaderStages, CompilerParameters)

    Converts the shader source into byte code.

    Declaration
    public static CompilationResult ShaderCompile(GraphicsContext context, string shaderSource, string entryPoint, ShaderStages stage, CompilerParameters parameters)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context.

    string shaderSource

    The shader source text.

    string entryPoint

    The entry point function name.

    ShaderStages stage

    The shader stage, ShaderStages.

    CompilerParameters parameters

    The compiler parameters.

    Returns
    Type Description
    CompilationResult

    The shader byte code.

    Implements

    IDisposable

    Extension Methods

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