D3DStripShader function (d3dcompiler.h)

Removes unwanted blobs from a compilation result.

Syntax

HRESULT D3DStripShader(
  [in]  LPCVOID  pShaderBytecode,
  [in]  SIZE_T   BytecodeLength,
  [in]  UINT     uStripFlags,
  [out] ID3DBlob **ppStrippedBlob
);

Parameters

[in] pShaderBytecode

Type: LPCVOID

A pointer to source data as compiled HLSL code.

[in] BytecodeLength

Type: SIZE_T

Length of pSrcData.

[in] uStripFlags

Type: UINT

Strip flag options, represented by D3DCOMPILER_STRIP_FLAGS.

[out] ppStrippedBlob

Type: ID3DBlob**

A pointer to a variable that receives a pointer to the ID3DBlob interface that you can use to access the unwanted stripped out shader code.

Return value

Type: HRESULT

Returns one of the Direct3D 11 return codes.

Requirements

Requirement Value
Target Platform Windows
Header d3dcompiler.h
Library D3dcompiler_47.lib
DLL D3dcompiler_47.dll

See also

Functions