ID3D10EffectSamplerVariable::GetSampler method (d3d10effect.h)

Get a pointer to a sampler interface.

Syntax

HRESULT GetSampler(
  [in]  UINT               Index,
  [out] ID3D10SamplerState **ppSampler
);

Parameters

[in] Index

Type: UINT

Index into an array of sampler interfaces. If there is only one sampler interface, use 0.

[out] ppSampler

Type: ID3D10SamplerState**

The address of a pointer to a sampler interface (see ID3D10SamplerState Interface).

Return value

Type: HRESULT

Returns one of the following Direct3D 10 Return Codes.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10EffectSamplerVariable Interface