Search Results for

    Show / Hide Table of Contents

    Class GPUShader

    The GPU resource with shader programs that can run on the GPU and are able to perform rendering calculation using textures, vertices and other resources.

    Inheritance
    System.Object
    Object
    GPUResource
    GPUShader
    Inherited Members
    GPUResource.ReleaseGPU()
    GPUResource.ResourceType
    GPUResource.MemoryUsage
    GPUResource.Name
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public sealed class GPUShader : GPUResource

    Constructors

    GPUShader()

    Initializes a new instance of the GPUShader.

    Declaration
    public GPUShader()

    Methods

    GetCB(Int32)

    Gets the constant buffer.

    Declaration
    [Unmanaged]
    public IntPtr GetCB(int slot)
    Parameters
    System.Int32 slot

    The buffer slot index.

    Returns
    System.IntPtr

    The Constant Buffer object.

    GetCS(String, Int32)

    Gets the compute shader.

    Declaration
    [Unmanaged]
    public IntPtr GetCS(string name, int permutationIndex = 0)
    Parameters
    System.String name

    The shader program name.

    System.Int32 permutationIndex

    The shader permutation index.

    Returns
    System.IntPtr

    The shader object.

    GetDS(String, Int32)

    Gets domain shader.

    Declaration
    [Unmanaged]
    public IntPtr GetDS(string name, int permutationIndex = 0)
    Parameters
    System.String name

    The shader program name.

    System.Int32 permutationIndex

    The shader permutation index.

    Returns
    System.IntPtr

    The shader object.

    GetGS(String, Int32)

    Gets the geometry shader.

    Declaration
    [Unmanaged]
    public IntPtr GetGS(string name, int permutationIndex = 0)
    Parameters
    System.String name

    The shader program name.

    System.Int32 permutationIndex

    The shader permutation index.

    Returns
    System.IntPtr

    The shader object.

    GetHS(String, Int32)

    Gets the hull shader.

    Declaration
    [Unmanaged]
    public IntPtr GetHS(string name, int permutationIndex = 0)
    Parameters
    System.String name

    The shader program name.

    System.Int32 permutationIndex

    The shader permutation index.

    Returns
    System.IntPtr

    The shader object.

    GetPS(String, Int32)

    Gets the pixel shader.

    Declaration
    [Unmanaged]
    public IntPtr GetPS(string name, int permutationIndex = 0)
    Parameters
    System.String name

    The shader program name.

    System.Int32 permutationIndex

    The shader permutation index.

    Returns
    System.IntPtr

    The shader object.

    GetVS(String, Int32)

    Gets the vertex shader.

    Declaration
    [Unmanaged]
    public IntPtr GetVS(string name, int permutationIndex = 0)
    Parameters
    System.String name

    The shader program name.

    System.Int32 permutationIndex

    The shader permutation index.

    Returns
    System.IntPtr

    The shader object.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat