Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11DeviceContext::PSSetSamplers method

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

Syntax


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

Parameters

StartSlot [in]

Type: UINT

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

NumSamplers [in]

Type: UINT

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).

ppSamplers [in, optional]

Type: ID3D11SamplerState*

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

Return value

This method does not return a value.

Remarks

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

StateDefault Value
FilterD3D11_FILTER_MIN_MAG_MIP_LINEAR
AddressUD3D11_TEXTURE_ADDRESS_CLAMP
AddressVD3D11_TEXTURE_ADDRESS_CLAMP
AddressWD3D11_TEXTURE_ADDRESS_CLAMP
MipLODBias0
MaxAnisotropy1
ComparisonFuncD3D11_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 hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceContext

 

 

Show:
© 2016 Microsoft