ID3D10EffectSamplerVariable::GetSampler method (d3d10effect.h)

Get a pointer to a sampler interface.

Syntax

HRESULT GetSampler(
  UINT               Index,
  ID3D10SamplerState **ppSampler
);

Parameters

Index

Type: UINT

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

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

   
Target Platform Windows
Header d3d10effect.h

See also

ID3D10EffectSamplerVariable Interface