D3DStripShader function

Removes unwanted blobs from a compilation result.

Syntax

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

Parameters

pShaderBytecode [in]

Type: LPCVOID

A pointer to source data as compiled HLSL code.

BytecodeLength [in]

Type: SIZE_T

Length of pSrcData.

uStripFlags [in]

Type: UINT

Strip flag options, represented by D3DCOMPILER_STRIP_FLAGS.

ppStrippedBlob [out]

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

Header

D3Dcompiler.h

Library

D3dcompiler_47.lib

DLL

D3dcompiler_47.dll

See also

Functions

 

 

Show: