D3DCOMPILE Constants

The D3DCOMPILE constants specify how the D3D compiler compiles the HLSL code.

Only a few constants are specific to Xbox One, and are listed below. The other constants can be found at D3DCOMPILE Constants.

Constant Description
D3DCOMPILE_NO_DEBUG_AND_ALL_FAST_SEMANTICS Improves the performance of: when all contexts are created with the D3D11_CREATE_ flags:DEFERRED_CONTEXT_FAST_SEMANTICS, or DEVICE_IMMEDIATE_CONTEXT_FAST_SEMANTICSto enable fast semantics. This compile-time flag cannot be used if any contexts still require legacy D3D semantics. This mode is recommended only for your final retail builds.
D3D10_SHADER_XBOX_NOPRECOMPILE Disable precompilation of dxbc to Xbox One shader objects.
D3DCOMPILE_NO_DEBUG Improves the performance of SetFastResources and related SetFast* APIs by removing a run-time 'if'. When this is enabled, PIX captures with API calls will no longer work, though PIX command captures, without API calls, will continue to work. This mode is recommended only for your retail builds.

See also

Shaders and the FXC Shader Compiler

D3Dcompiler Intrinsics

GPU and Shader Acronyms