D3D11_SHADER_TRACE_DESC structure (d3d11shadertracing.h)

Describes a shader-trace object.

Syntax

typedef struct D3D11_SHADER_TRACE_DESC {
  D3D11_SHADER_TYPE Type;
  UINT              Flags;
  union {
    D3D11_VERTEX_SHADER_TRACE_DESC   VertexShaderTraceDesc;
    D3D11_HULL_SHADER_TRACE_DESC     HullShaderTraceDesc;
    D3D11_DOMAIN_SHADER_TRACE_DESC   DomainShaderTraceDesc;
    D3D11_GEOMETRY_SHADER_TRACE_DESC GeometryShaderTraceDesc;
    D3D11_PIXEL_SHADER_TRACE_DESC    PixelShaderTraceDesc;
    D3D11_COMPUTE_SHADER_TRACE_DESC  ComputeShaderTraceDesc;
  };
} D3D11_SHADER_TRACE_DESC;

Members

Type

A D3D11_SHADER_TYPE-typed value that identifies the type of shader that the shader-trace object describes. This member also determines which shader-trace type to use in the following union.

Flags

A combination of the following flags that are combined by using a bitwise OR operation. The resulting value specifies how ID3D11ShaderTraceFactory::CreateShaderTrace creates the shader-trace object.

Flag Description
D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_WRITES (0x1) The shader trace object records register-writes.
D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_READS (0x2) The shader trace object records register-reads.

VertexShaderTraceDesc

A D3D11_VERTEX_SHADER_TRACE_DESC structure that describes an instance of a vertex shader to trace.

HullShaderTraceDesc

A D3D11_HULL_SHADER_TRACE_DESC structure that describes an instance of a hull shader to trace.

DomainShaderTraceDesc

A D3D11_DOMAIN_SHADER_TRACE_DESC structure that describes an instance of a domain shader to trace.

GeometryShaderTraceDesc

A D3D11_GEOMETRY_SHADER_TRACE_DESC structure that describes an instance of a geometry shader to trace.

PixelShaderTraceDesc

A D3D11_PIXEL_SHADER_TRACE_DESC structure that describes an instance of a pixel shader to trace.

ComputeShaderTraceDesc

A D3D11_COMPUTE_SHADER_TRACE_DESC structure that describes an instance of a compute shader to trace.

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header d3d11shadertracing.h

See also

ID3D11ShaderTraceFactory::CreateShaderTrace

Shader Structures