ID3D10EffectConstantBuffer interface

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

Members

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

Methods

The ID3D10EffectConstantBuffer interface has these methods.

MethodDescription
GetConstantBuffer

Get a constant-buffer.

GetTextureBuffer

Get a texture-buffer.

SetConstantBuffer

Set a constant-buffer.

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

Header

D3D10Effect.h

Library

D3D10.lib

See also

ID3D10EffectVariable
Effect Interfaces (Direct3D 10)

 

 

Show: