[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.CommonShaderStageBase.SetConstantBuffers

SetConstantBuffers Method

SetConstantBuffers(int, params Buffer[])

Sets an array of constant buffers to be used by the shader stage.

Declaration
public void SetConstantBuffers(int slot, params Buffer[] constantBuffers)
Parameters
Type Name Description
int slot

Index into the device's zero-based array to which to set the array of constant buffers.

Buffer[] constantBuffers

An array of constant buffer to set

SetConstantBuffers(int, ComArray<Buffer>)

Sets an array of constant buffers to be used by the shader stage.

Declaration
public void SetConstantBuffers(int slot, ComArray<Buffer> constantBuffers)
Parameters
Type Name Description
int slot

Index into the device's zero-based array to which to set the array of constant buffers.

ComArray<Buffer> constantBuffers

An array of constant buffer to set

SetConstantBuffers(int, int, params Buffer[])

Set the constant buffers used by the shader pipeline stage.

Declaration
public void SetConstantBuffers(int startSlot, int numBuffers, params Buffer[] constantBuffers)
Parameters
Type Name Description
int startSlot

Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1).

int numBuffers

Number of buffers to set (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot).

Buffer[] constantBuffers

Array of constant buffers (see Buffer) being given to the device.

SetConstantBuffers(int, int, ComArray<Buffer>)

Set the constant buffers used by the shader pipeline stage.

Declaration
public void SetConstantBuffers(int startSlot, int numBuffers, ComArray<Buffer> constantBuffers)
Parameters
Type Name Description
int startSlot

Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1).

int numBuffers

Number of buffers to set (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot).

ComArray<Buffer> constantBuffers

Array of constant buffers (see Buffer) being given to the device.