ID3D10Effect interface (d3d10effect.h)
An ID3D10Effect interface manages a set of state objects, resources, and shaders for implementing a rendering effect.
The ID3D10Effect interface inherits from the IUnknown interface. ID3D10Effect also has these types of members:
The ID3D10Effect interface has these methods.
The ID3D10Effect::GetConstantBufferByIndex (d3d10effect.h) method gets a constant buffer by index.
Get a constant buffer by name. (ID3D10Effect.GetConstantBufferByName)
Get an effect description.
Get the device that created the effect.
Get a technique by index.
Get a technique by name.
Get a variable by index.
Get a variable by name.
Get a variable by semantic.
Test an effect to see if the reflection metadata has been removed from memory.
Test an effect to see if it is part of a memory pool.
Test an effect to see if it contains valid syntax.
Minimize the amount of memory required for an effect.
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).
IUnknown* pIUnknown = (IUnknown*)pEffect; pIUnknown->AddRef();