ID3D11ShaderTraceFactory::CreateShaderTrace method

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

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

pShader [in]

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

pTraceDesc [in]

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

ppShaderTrace [out]

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3D11ShaderTracing.h

Library

D3dcompiler.lib or D3dcompiler_nn.dll

See also

ID3D11ShaderTraceFactory

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.