[]
Assigns a compute shader to the device.
public void Set(T shader)
| Type | Name | Description |
|---|---|---|
| T | shader | The shader to assign to the device. Assign null to disable the compute shader. |
Assigns a compute shader to the device.
public void Set(T shader, ClassInstance[] classInstances)
| Type | Name | Description |
|---|---|---|
| T | shader | The shader to assign to the device. Assign |
| ClassInstance[] | classInstances | An array of class-instance interfaces. Each interface used by a shader must have a corresponding class instance or the shader will get disabled. |
Assigns a compute shader to the device.
public void Set(T shader, ComArray<ClassInstance> classInstances)
| Type | Name | Description |
|---|---|---|
| T | shader | The shader to assign to the device. Assign |
| ComArray<ClassInstance> | classInstances | An array of class-instance interfaces. Each interface used by a shader must have a corresponding class instance or the shader will get disabled. |