[]
Sets an array of constant buffers to be used by the shader stage.
public void SetConstantBuffers(int slot, params Buffer[] constantBuffers)
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 |
Sets an array of constant buffers to be used by the shader stage.
public void SetConstantBuffers(int slot, ComArray<Buffer> constantBuffers)
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 |
Set the constant buffers used by the shader pipeline stage.
public void SetConstantBuffers(int startSlot, int numBuffers, params Buffer[] constantBuffers)
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. |
Set the constant buffers used by the shader pipeline stage.
public void SetConstantBuffers(int startSlot, int numBuffers, ComArray<Buffer> constantBuffers)
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. |