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.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class GPUShader : GPUResource
Constructors
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. |