ID3D10EffectConstantBuffer interface (d3d10effect.h)
A constant-buffer interface accesses constant buffers or texture buffers.
The ID3D10EffectConstantBuffer interface inherits from ID3D10EffectVariable. ID3D10EffectConstantBuffer also has these types of members:
The ID3D10EffectConstantBuffer interface has these methods.
Get a constant-buffer.
Get a texture-buffer.
Set a constant-buffer.
Set a texture-buffer.
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.