Expand Minimize

ID3D10Device::PSSetSamplers method

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

Syntax


void PSSetSamplers(
  [in]  UINT StartSlot,
  [in]  UINT NumSamplers,
  [in]  ID3D10SamplerState *const *ppSamplers
);

Parameters

StartSlot [in]

Type: UINT

Index into the device's zero-based array to begin setting samplers to.

NumSamplers [in]

Type: UINT

Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available.

ppSamplers [in]

Type: ID3D10SamplerState*

Pointer to an array of sampler-state interfaces (see ID3D10SamplerState). See Remarks.

Return value

Returns nothing.

Remarks

Any sampler may be set to NULL; this invokes the default state, which is defined to be the following.

StateDefault Value
FilterD3D10_FILTER_MIN_MAG_MIP_LINEAR
AddressUD3D10_TEXTURE_ADDRESS_CLAMP
AddressVD3D10_TEXTURE_ADDRESS_CLAMP
AddressWD3D10_TEXTURE_ADDRESS_CLAMP
MipLODBias0
MaxAnisotropy1
ComparisonFuncD3D10_COMPARISON_NEVER
BorderColor[0]1.0f
BorderColor[1]1.0f
BorderColor[2]1.0f
BorderColor[3]1.0f
MinLOD-FLT_MAX
MaxLODFLT_MAX

 

The method will not hold a reference to the interfaces passed in. For that reason, applications should be careful not to release an interface currently in use by the device.

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10Device Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft