[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.CommonShaderStageBase.SetSamplers

SetSamplers Method

SetSamplers(int, params SamplerState[])

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

Declaration
public void SetSamplers(int slot, params SamplerState[] samplers)
Parameters
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

SetSamplers(int, ComArray<SamplerState>)

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

Declaration
public void SetSamplers(int slot, ComArray<SamplerState> samplers)
Parameters
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

SetSamplers(int, int, params SamplerState[])

Set an array of sampler states to the shader pipeline stage.

Declaration
public void SetSamplers(int startSlot, int numSamplers, params SamplerState[] samplers)
Parameters
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.

SetSamplers(int, int, ComArray<SamplerState>)

Set an array of sampler states to the shader pipeline stage.

Declaration
public void SetSamplers(int startSlot, int numSamplers, ComArray<SamplerState> samplers)
Parameters
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.