D3DDecompressShaders

Decompresses one or more shaders from a compressed set.

Syntax

HRESULT D3DDecompressShaders(
         LPCVOID pSrcData,
         SIZE_T SrcDataSize,
         UINT uNumShaders,
         UINT uStartIndex,
         UINT *pIndices,
         UINT uFlags,
         ID3DBlob **ppShaders,
         UINT *pTotalShaders
)  

Parameters

pSrcData
Type: LPCVOID 

[in] A pointer to uncompiled shader data; either ASCII HLSL code or a compiled effect.

SrcDataSize
Type: SIZE_T 

[in] Length of uncompiled shader data that pSrcData points to.

uNumShaders
Type: UINT 

[in] The number of shaders to decompress.

uStartIndex
Type: UINT 

[in] The index of the first shader to decompress.

pIndices
Type: UINT *

[in, optional] An array of indexes that represent the shaders to decompress.

uFlags
Type: UINT 

[in] Flags that indicate how to decompress. Currently, no flags are defined.

ppShaders
Type: ID3DBlob **

[out] The address of a pointer to the ID3DBlob interface that is used to retrieve the decompressed shader data.

pTotalShaders
Type: UINT *

[out, optional] A pointer to a variable that receives the total number of shaders that D3DDecompressShaders decompressed.

Return value

Type: HRESULT 

Returns one of the following Direct3D 10 Return Codes.

Requirements

Header: Declared in d3dcompiler.h.

Library: Use d3d11.lib.