ID3D11ShaderTraceFactory::CreateShaderTrace method (d3d11shadertracing.h)

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

Syntax

HRESULT CreateShaderTrace(
  [in]  IUnknown                *pShader,
  [in]  D3D11_SHADER_TRACE_DESC *pTraceDesc,
  [out] ID3D11ShaderTrace       **ppShaderTrace
);

Parameters

[in] pShader

A pointer to the interface of the shader to create the shader-trace interface for. For example, pShader can be an instance of ID3D11VertexShader, ID3D11PixelShader, and so on.

[in] pTraceDesc

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

[out] ppShaderTrace

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

Return value

CreateShaderTrace returns:

  • S_OK if the method created the shader-trace information object.
  • E_FAIL if the reference device, which supports tracing, is not being used.
  • E_OUTOFMEMORY if memory is unavailable to complete the operation.
  • E_INVALIDARG if any parameter is NULL or invalid.
  • Possibly other error codes that are described in Direct3D 11 Return Codes.

Remarks

This API requires the Windows Software Development Kit (SDK) for Windows 8.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11shadertracing.h
DLL D3D11SDKLayers.dll; D3D11_1SDKLayers.dll; D3D11_2SDKLayers.dll

See also

ID3D11ShaderTraceFactory