IDirect3DDevice9::SetStreamSourceFreq method (d3d9.h)

Sets the stream source frequency divider value. This may be used to draw several instances of geometry.

Syntax

HRESULT SetStreamSourceFreq(
  UINT StreamNumber,
  UINT Setting
);

Parameters

StreamNumber

Type: [in] UINT

Stream source number.

Setting

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

There are two constants defined in d3d9types.h that are designed to use with SetStreamSourceFreq: D3DSTREAMSOURCE_INDEXEDDATA and D3DSTREAMSOURCE_INSTANCEDATA. To see how to use the constants, see Efficiently Drawing Multiple Instances of Geometry (Direct3D 9).

Requirements

Requirement Value
Target Platform Windows
Header d3d9.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DDevice9

IDirect3DDevice9::GetStreamSourceFreq