ID3D10Effect::GetConstantBufferByIndex method (d3d10effect.h)

Get a constant buffer by index.

Syntax

ID3D10EffectConstantBuffer * GetConstantBufferByIndex(
  [in] UINT Index
);

Parameters

[in] Index

Type: UINT

A zero-based index.

Return value

Type: ID3D10EffectConstantBuffer*

A pointer to a ID3D10EffectConstantBuffer Interface.

Remarks

An effect that contains a variable that will be read/written by an application requires at least one constant buffer. For best performance, an effect should organize variables into one or more constant buffers based on their frequency of update.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10Effect Interface