ID3DX11Effect interface

An ID3DX11Effect interface manages a set of state objects, resources, and shaders for implementing a rendering effect.

Members

The ID3DX11Effect interface inherits from the IUnknown interface. ID3DX11Effect also has these types of members:

Methods

The ID3DX11Effect interface has these methods.

MethodDescription
CloneEffect

Creates a copy of an effect interface.

GetClassLinkage

Gets a class linkage interface.

GetConstantBufferByIndex

Get a constant buffer by index.

GetConstantBufferByName

Get a constant buffer by name.

GetDesc

Get an effect description.

GetDevice

Get the device that created the effect.

GetGroupByIndex

Gets an effect group by index.

GetGroupByName

Gets an effect group by name.

GetTechniqueByIndex

Get a technique by index.

GetTechniqueByName

Get a technique by name.

GetVariableByIndex

Get a variable by index.

GetVariableByName

Get a variable by name.

GetVariableBySemantic

Get a variable by semantic.

IsOptimized

Test an effect to see if the reflection metadata has been removed from memory.

IsValid

Test an effect to see if it contains valid syntax.

Optimize

Minimize the amount of memory required for an effect.

 

Remarks

An effect is created by calling D3DX11CreateEffectFromMemory.

The effect system groups the information required for rendering into an effect which contains: state objects for assigning state changes in groups, resources for supplying input data and storing output data, and programs that control how the rendering is done called shaders.

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.

Note  

If you call QueryInterface on an ID3DX11Effect object to retrieve the IUnknown interface, QueryInterface returns E_NOINTERFACE. To work around this issue, use the following code:



    IUnknown* pIUnknown = (IUnknown*)pEffect;
    pIUnknown->AddRef();


Requirements

Header

D3dx11effect.h

Library

N/A (An Effects 11 library is available online as shared source.)

See also

D3DX Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft