D3D10GetShaderDebugInfo function

Get shader debug info. Debug info is generated by D3D10CompileShader and is embedded in the body of the shader.

Syntax


HRESULT D3D10GetShaderDebugInfo(
   const void       *pShaderBytecode,
         SIZE_T     BytecodeLength,
         ID3D10Blob **ppDebugInfo
);

Parameters

pShaderBytecode

Type: const void*

A pointer to the compiled shader. To get this pointer see Getting a Pointer to a Compiled Shader.

BytecodeLength

Type: SIZE_T

Length of the shader bytecode buffer.

ppDebugInfo

Type: ID3D10Blob**

Pointer to an ID3D10Blob Interface used to return debug info. For information about the layout of this buffer, see D3D10_SHADER_DEBUG_INFO.

Return value

Type: HRESULT

Returns one of the following Direct3D 10 Return Codes.

Requirements

Header

D3D10Shader.h

Library

D3D10.lib

DLL

D3D10.dll

See also

Shader Functions

 

 

Show: