[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.CommonShaderStage-1.Set

Set Method

Set(T)

Assigns a compute shader to the device.

Declaration
public void Set(T shader)
Parameters
Type Name Description
T shader

The shader to assign to the device. Assign null to disable the compute shader.

Set(T, ClassInstance[])

Assigns a compute shader to the device.

Declaration
public void Set(T shader, ClassInstance[] classInstances)
Parameters
Type Name Description
T shader

The shader to assign to the device. Assign null to disable the compute shader.

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.

Set(T, ComArray<ClassInstance>)

Assigns a compute shader to the device.

Declaration
public void Set(T shader, ComArray<ClassInstance> classInstances)
Parameters
Type Name Description
T shader

The shader to assign to the device. Assign null to disable the compute shader.

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.