Compresses a set of shaders into a more compact form.
HRESULT D3DCompressShaders(
UINT uNumShaders,
D3D_SHADER_DATA *pShaderData,
UINT uFlags,
ID3DBlob **ppCompressedData
)
uNumShaders
Type: UINT
[in] The number of shaders to compress.
pShaderData
Type: D3D_SHADER_DATA *
[in] An array of D3D_SHADER_DATA structures that describe the set of shaders to compress.
uFlags
Type: UINT
[in] Flags that indicate how to compress the shaders. Currently, only the D3D_COMPRESS_SHADER_KEEP_ALL_PARTS (0x00000001) flag is defined.
ppCompressedData
Type: ID3DBlob **
[out] The address of a pointer to the ID3DBlob interface that is used to retrieve the compressed shader data.
Type: HRESULT
Returns one of the following Direct3D 10 Return Codes.
Header: Declared in d3dcompiler.h.
Library: Use d3d11.lib.