ID3D10Effect interface (d3d10effect.h)

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

Inheritance

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

Methods

The ID3D10Effect interface has these methods.

 
ID3D10Effect::GetConstantBufferByIndex

The ID3D10Effect::GetConstantBufferByIndex (d3d10effect.h) method gets a constant buffer by index.
ID3D10Effect::GetConstantBufferByName

Get a constant buffer by name. (ID3D10Effect.GetConstantBufferByName)
ID3D10Effect::GetDesc

Get an effect description.
ID3D10Effect::GetDevice

Get the device that created the effect.
ID3D10Effect::GetTechniqueByIndex

Get a technique by index.
ID3D10Effect::GetTechniqueByName

Get a technique by name.
ID3D10Effect::GetVariableByIndex

Get a variable by index.
ID3D10Effect::GetVariableByName

Get a variable by name.
ID3D10Effect::GetVariableBySemantic

Get a variable by semantic.
ID3D10Effect::IsOptimized

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

Test an effect to see if it is part of a memory pool.
ID3D10Effect::IsValid

Test an effect to see if it contains valid syntax.
ID3D10Effect::Optimize

Minimize the amount of memory required for an effect.

Remarks

An effect is created by calling D3D10CreateEffectFromMemory.

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. For more information, see Effects (Direct3D 10).

Note  

If you call QueryInterface on an ID3D10Effect 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

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

Effect Interfaces (Direct3D 10)