[]
Common Shader class. Provides a common set of methods for a Shader Stage. TODO: check if usage of abstract is not introducing an unacceptable overhead...
public abstract class CommonShaderStage<T> : CommonShaderStageBase, IDisposable where T : DeviceChild
Name | Description |
---|---|
T | Type of the shader |
Name | Description |
---|---|
CommonShaderStage(IntPtr) | Initializes a new instance of the CommonShaderStage<T> class. |
Name | Description |
---|---|
Get() | Gets the shader currently assigned to the device. |
Get(ClassInstance[]) | Gets the shader currently assigned to the device. |
Set(T) | Assigns a compute shader to the device. |
Set(T, ComArray<ClassInstance>) | Assigns a compute shader to the device. |
Set(T, ClassInstance[]) | Assigns a compute shader to the device. |