D3DX Functions (Direct3D 11 Graphics)

This section contains information about the D3DX 11 functions.

Note

The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.

In this section

Topic Description
D3DX11CompileFromFile
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you compile offline by using the Fxc.exe command-line compiler or use one of the HLSL compile APIs, like the D3DCompileFromFile API.
Compile a shader or an effect from a file.
D3DX11CompileFromMemory
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you compile offline by using the Fxc.exe command-line compiler or use one of the HLSL compile APIs, like the D3DCompile API.
Compile a shader or an effect that is loaded in memory.
D3DX11CompileFromResource
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use resource functions, then compile offline by using the Fxc.exe command-line compiler or use one of the HLSL compile APIs, like the D3DCompile API.
Compile a shader or an effect from a resource.
D3DX11ComputeNormalMap
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, ComputeNormalMap.
Converts a height map into a normal map. The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture.
D3DX11CreateAsyncCompilerProcessor
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create an asynchronous-data processor for a shader.
D3DX11CreateAsyncFileLoader
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create an asynchronous-file loader.
D3DX11CreateAsyncMemoryLoader
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create an asynchronous-memory loader.
D3DX11CreateAsyncResourceLoader
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create an asynchronous-resource loader.
D3DX11CreateAsyncShaderPreprocessProcessor
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create a data processor for a shader asynchronously.
D3DX11CreateAsyncTextureInfoProcessor
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create a data processor to be used with a thread pump.
D3DX11CreateAsyncTextureProcessor
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create a data processor to be used with a thread pump.
D3DX11CreateAsyncShaderResourceViewProcessor
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create a data processor that will load a resource and then create a shader-resource view for it. Data processors are a component of the asynchronous data loading feature in D3DX11 that uses thread pumps.
D3DX11CreateShaderResourceViewFromFile
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use these:
- DirectXTK library (runtime), CreateXXXTextureFromFile (where XXX is DDS or WIC)
- DirectXTex library (tools), LoadFromXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateShaderResourceView
Create a shader-resource view from a file.
D3DX11CreateShaderResourceViewFromMemory
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use these:
- DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
- DirectXTex library (tools), LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateShaderResourceView
Create a shader-resource view from a file in memory.
D3DX11CreateShaderResourceViewFromResource
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use resource functions, then these:
- DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
- DirectXTex library (tools), LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateShaderResourceView
Create a shader-resource view from a resource.
D3DX11CreateTextureFromFile
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use these:
- DirectXTK library (runtime), CreateXXXTextureFromFile (where XXX is DDS or WIC)
- DirectXTex library (tools), LoadFromXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateTexture
Create a texture resource from a file.
D3DX11CreateTextureFromMemory
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use these:
- DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
- DirectXTex library (tools), LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateTexture
Create a texture resource from a file residing in system memory.
D3DX11CreateTextureFromResource
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use resource functions, then these:
- DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
- DirectXTex library (tools), LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateTexture
Create a texture from another resource.
D3DX11CreateThreadPump
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create a thread pump.
D3DX11FilterTexture
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, GenerateMipMaps and GenerateMipMaps3D.
Generates mipmap chain using a particular texture filter.
D3DX11GetImageInfoFromFile
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, GetMetadataFromXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).
Retrieves information about a given image file.
D3DX11GetImageInfoFromMemory
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, GetMetadataFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).
Get information about an image already loaded into memory.
D3DX11GetImageInfoFromResource
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use resource functions, then use DirectXTex library (tools), LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).
Retrieves information about a given image in a resource.
D3DX11LoadTextureFromTexture
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, Resize, Convert, Compress, Decompress, and/or CopyRectangle.
Load a texture from a texture.
D3DX11PreprocessShaderFromFile
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the D3DPreprocess API.
Create a shader from a file without compiling it.
D3DX11PreprocessShaderFromMemory
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the D3DPreprocess API.
Create a shader from memory without compiling it.
D3DX11PreprocessShaderFromResource
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the D3DPreprocess API.
Create a shader from a resource without compiling it.
D3DX11SaveTextureToFile
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, CaptureTexture then SaveToXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games). For the simplified scenario of creating a screen shot from a render target texture, we recommend that you use the DirectXTK library, SaveDDSTextureToFile or SaveWICTextureToFile.
Save a texture to a file.
D3DX11SaveTextureToMemory
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the DirectXTex library, CaptureTexture then SaveToXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).
Save a texture to memory.
D3DX11SHProjectCubeMap
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the Spherical Harmonics Math library, SHProjectCubeMap.
Projects a function represented in a cube map into spherical harmonics.
D3DX11UnsetAllDeviceObjects
Note: The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note: Instead of using this function, we recommend that you use the ID3D11DeviceContext::ClearState method.
Removes all resources from the device by setting their pointers to NULL. This should be called during shutdown of your application. It helps ensure that when one is releasing all of their resources that none of them are bound to the device.

D3DX 11 Reference