ID3D10EffectConstantBuffer interface (d3d10effect.h)

A constant-buffer interface accesses constant buffers or texture buffers.

Inheritance

The ID3D10EffectConstantBuffer interface inherits from ID3D10EffectVariable. ID3D10EffectConstantBuffer also has these types of members:

Methods

The ID3D10EffectConstantBuffer interface has these methods.

 
ID3D10EffectConstantBuffer::GetConstantBuffer

Get a constant-buffer.
ID3D10EffectConstantBuffer::GetTextureBuffer

Get a texture-buffer.
ID3D10EffectConstantBuffer::SetConstantBuffer

Set a constant-buffer.
ID3D10EffectConstantBuffer::SetTextureBuffer

Set a texture-buffer.

Remarks

Use constant buffers to store many effect constants; grouping constants into buffers based on their frequency of update. This allows you to minimize the number of state changes as well as make the fewest API calls to change state. Both of these factors lead to better performance.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

Effect Interfaces (Direct3D 10)

ID3D10EffectVariable