[]
Sets an array of samplers to be used by the shader stage.
public void SetSamplers(int slot, params SamplerState[] samplers)
Type | Name | Description |
---|---|---|
int | slot | Index into the device's zero-based array to which to set the array of sampler states. |
SamplerState[] | samplers | An array of sampler state to set |
Sets an array of samplers to be used by the shader stage.
public void SetSamplers(int slot, ComArray<SamplerState> samplers)
Type | Name | Description |
---|---|---|
int | slot | Index into the device's zero-based array to which to set the array of sampler states. |
ComArray<SamplerState> | samplers | An array of sampler state to set |
Set an array of sampler states to the shader pipeline stage.
public void SetSamplers(int startSlot, int numSamplers, params SamplerState[] samplers)
Type | Name | Description |
---|---|---|
int | startSlot | Index into the device's zero-based array to begin setting samplers to (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1). |
int | numSamplers | Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot). |
SamplerState[] | samplers | Pointer to an array of sampler-state interfaces (see SamplerState). See Remarks. |
Set an array of sampler states to the shader pipeline stage.
public void SetSamplers(int startSlot, int numSamplers, ComArray<SamplerState> samplers)
Type | Name | Description |
---|---|---|
int | startSlot | Index into the device's zero-based array to begin setting samplers to (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1). |
int | numSamplers | Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot). |
ComArray<SamplerState> | samplers | Pointer to an array of sampler-state interfaces (see SamplerState). See Remarks. |