ID3D11ShaderTraceFactory::CreateShaderTrace Method

Creates a shader-trace interface for a shader-trace information object.

Syntax

public:
HRESULT CreateShaderTrace(
         IUnknown *pShader,
         D3D11_SHADER_TRACE_DESC *pTraceDesc,
         ID3D11ShaderTrace **ppShaderTrace
)  

Parameters

pShader
Type: IUnknown *

[in] A pointer to the IUnknown interface of the shader to create the shader-trace interface for.

pTraceDesc
Type: D3D11_SHADER_TRACE_DESC *

[in] A pointer to a D3D11_SHADER_TRACE_DESC structure that describes the shader-trace object to create. This parameter cannot be NULL.

ppShaderTrace
Type: ID3D11ShaderTrace **

[out] A pointer to a variable that receives a pointer to the ID3D11ShaderTrace interface for the shader-trace object that CreateShaderTrace creates.

Return value

Type: HRESULT 

CreateShaderTrace returns:

Requirements

Header: Declared in d3d11shadertracing.h.

Library: Use d3d11.lib.

See also

ID3D11ShaderTraceFactory

ID3D11ShaderTraceFactory Members