Compiler functions (HLSL reference)

This section contains information about the following Direct3D HLSL compiler functions:

In this section

Topic Description
D3D11Reflect
Gets a pointer to a reflection interface.
D3DCompile
Compile HLSL code or an effect file into bytecode for a given target.
D3DCompile2
Compiles Microsoft High Level Shader Language (HLSL) code into bytecode for a given target.
D3DCompileFromFile
Note: You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store. Refer to the section, "Compiling shaders for UWP", in the remarks for D3DCompile2.
Compiles HLSL code into bytecode for a given target.
D3DCompressShaders
Note: You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.
Compresses a set of shaders into a more compact form.
D3DCreateBlob
Creates a buffer.
D3DCreateFunctionLinkingGraph
Creates a function-linking-graph interface.
Note: This function is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.
D3DCreateLinker
Creates a linker interface.
Note: This function is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.
D3DDecompressShaders
Note: You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.
Decompresses one or more shaders from a compressed set.
D3DDisassemble
Disassembles compiled HLSL code.
D3DDisassemble10Effect
Disassembles compiled HLSL code from a Direct3D10 effect.
D3DDisassemble11Trace
Disassembles a section of compiled HLSL code that is specified by shader trace steps.
D3DDisassembleRegion
Disassembles a specific region of compiled HLSL code.
D3DGetBlobPart
Retrieves a specific part from a compilation result.
D3DGetDebugInfo
Note: You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.
Gets shader debug information.
D3DGetInputAndOutputSignatureBlob
Note: D3DGetInputAndOutputSignatureBlob may be altered or unavailable for releases after Windows 8.1. Instead use D3DGetBlobPart with the D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB value.
Gets the input and output signatures from a compilation result.
D3DGetInputSignatureBlob
Note: D3DGetInputSignatureBlob may be altered or unavailable for releases after Windows 8.1. Instead use D3DGetBlobPart with the D3D_BLOB_INPUT_SIGNATURE_BLOB value.
Gets the input signature from a compilation result.
D3DGetOutputSignatureBlob
Note: D3DGetOutputSignatureBlob may be altered or unavailable for releases after Windows 8.1. Instead use D3DGetBlobPart with the D3D_BLOB_OUTPUT_SIGNATURE_BLOB value.
Gets the output signature from a compilation result.
D3DGetTraceInstructionOffsets
Retrieves the byte offsets for instructions within a section of shader code.
D3DLoadModule
Creates a shader module interface from source data for the shader module.
Note: This function is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.
D3DPreprocess
Preprocesses uncompiled HLSL code.
D3DReadFileToBlob
Note: You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.
Reads a file that is on disk into memory.
D3DReflect
Gets a pointer to a reflection interface.
D3DReflectLibrary
Creates a library-reflection interface from source data that contains an HLSL library of functions.
Note: This function is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.
D3DSetBlobPart
Sets information in a compilation result.
D3DStripShader
Removes unwanted blobs from a compilation result.
D3DWriteBlobToFile
Note: You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.
Writes a memory blob to a file on disk.

D3DCompiler Reference