ID3D10Effect::IsOptimized method (d3d10effect.h)
Test an effect to see if the reflection metadata has been removed from memory.
Syntax
BOOL IsOptimized();
Return value
Type: BOOL
TRUE if the effect is optimized; otherwise FALSE.
Remarks
An effect uses memory space two different ways: to store the information required by the runtime to execute an effect, and to store the metadata required to reflect information back to an application using the API. You can minimize the amount of memory required by an effect by calling ID3D10Effect::Optimize which removes the reflection metadata from memory. Of course, API methods to read variables will no longer work once reflection data has been removed.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d10effect.h |