ID3DX11EffectConstantBuffer interface

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

Members

The ID3DX11EffectConstantBuffer interface inherits from ID3DX11EffectVariable. ID3DX11EffectConstantBuffer also has these types of members:

Methods

The ID3DX11EffectConstantBuffer interface has these methods.

Method Description
GetConstantBuffer Get a constant-buffer.
GetTextureBuffer Get a texture-buffer.
SetConstantBuffer Set a constant-buffer.
SetTextureBuffer Set a texture-buffer.
UndoSetConstantBuffer Reverts a previously set constant buffer.
UndoSetTextureBuffer Reverts a previously set 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.

Note

The DirectX SDK does not supply any compiled binaries for effects. You must use Effects 11 source to build your effects-type application. For more information about using Effects 11 source, see Differences Between Effects 10 and Effects 11.

Requirements

Requirement Value
Header
D3dx11effect.h
Library
N/A (An Effects 11 library is available online as shared source.)

See also

ID3DX11EffectVariable

Effects 11 Interfaces

D3DX Interfaces