HLSL

Overview of the HLSL technology.

To develop HLSL, you need these headers:

For programming guidance for this technology, see:

Enumerations

Title Description
D3D_BLOB_PART Values that identify parts of the content of an arbitrary length data buffer.
D3D_BLOB_PART Values that identify parts of the content of an arbitrary length data buffer.
D3DCOMPILER_STRIP_FLAGS Strip flag options.
D3DCOMPILER_STRIP_FLAGS Strip flag options.

Functions

Title Description
D3DCompile Compile HLSL code or an effect file into bytecode for a given target.
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.
D3DCompile2 Compiles Microsoft High Level Shader Language (HLSL) code into bytecode for a given target.
D3DCompileFromFile Compiles Microsoft High Level Shader Language (HLSL) code into bytecode for a given target.
D3DCompileFromFile Compiles Microsoft High Level Shader Language (HLSL) code into bytecode for a given target.
D3DCompressShaders Compresses a set of shaders into a more compact form.
D3DCompressShaders Compresses a set of shaders into a more compact form.
D3DCreateBlob Creates a buffer.
D3DCreateBlob Creates a buffer.
D3DCreateFunctionLinkingGraph Creates a function-linking-graph interface.
D3DCreateFunctionLinkingGraph Creates a function-linking-graph interface.
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.  .
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 Decompresses one or more shaders from a compressed set.
D3DDecompressShaders Decompresses one or more shaders from a compressed set.
D3DDisassemble Disassembles compiled HLSL code.
D3DDisassemble Disassembles compiled HLSL code.
D3DDisassemble10Effect Disassembles compiled HLSL code from a Direct3D10 effect.
D3DDisassemble10Effect Disassembles compiled HLSL code from a Direct3D10 effect.
D3DDisassembleRegion Disassembles a specific region of compiled Microsoft High Level Shader Language (HLSL) code.
D3DDisassembleRegion Disassembles a specific region of compiled Microsoft High Level Shader Language (HLSL) code.
D3DGetBlobPart Retrieves a specific part from a compilation result.
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.
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.
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.
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.
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.
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.
D3DLoadModule Creates a shader module interface from source data for the shader module.
D3DPreprocess Preprocesses uncompiled HLSL code.
D3DPreprocess Preprocesses uncompiled HLSL code.
D3DReadFileToBlob Reads a file that is on disk into memory.
D3DReadFileToBlob Reads a file that is on disk into memory.
D3DReflect Gets a pointer to a reflection interface.
D3DReflect Gets a pointer to a reflection interface.
D3DReflectLibrary Creates a library-reflection interface from source data that contains an HLSL library of functions.
D3DReflectLibrary Creates a library-reflection interface from source data that contains an HLSL library of functions.
D3DSetBlobPart Sets information in a compilation result.
D3DSetBlobPart Sets information in a compilation result.
D3DStripShader Removes unwanted blobs from a compilation result.
D3DStripShader Removes unwanted blobs from a compilation result.
D3DWriteBlobToFile Writes a memory blob to a file on disk.
D3DWriteBlobToFile Writes a memory blob to a file on disk.

Structures

Title Description
D3D_SHADER_DATA Describes shader data.
D3D_SHADER_DATA Describes shader data.