D3D10_EFFECT Constants

These constants used when creating an effect to define either compilation behavior or runtime effect behavior.

#define Value Description
D3D10_EFFECT_COMPILE_CHILD_EFFECT 1 << 0 Compile the .fx file to a child effect. Child effects have no initializes for any shared values because these are initialized in the effect pool.
D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS 1 << 1 By default, performance mode is enabled. Performance mode disallows mutable state objects by preventing non-literal expressions from appearing in state object definitions. Specifying this flag will disable the mode and allow for mutable state objects.
D3D10_EFFECT_SINGLE_THREADED 1 << 3 Do not attempt to synchronize with other threads loading effects into the same pool.

 

These constants are defined as macros in d3d10effect.h.

Effect Constants (Direct3D 10)