D3D11X_THREAD_TRACE_DESC Structure

Thread trace options used for StartThreadTrace.

Syntax

struct D3D11X_THREAD_TRACE_DESC {
    BOOL PipelineFlushBeforeAndAfter;
    UINT TargetComputeUnitIndex;
    D3D11X_THREAD_TRACE_SCOPE TraceScope;
    BOOL AllowSamplingGpuStalls;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE PsEnable;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE VsEnable;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE GsEnable;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE EsEnable;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE HsEnable;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE LsEnable;
    D3D11X_THREAD_TRACE_PIPELINE_ENABLE CsEnable;
    USHORT TokenMask;
    USHORT InstructionMask;
    BYTE RegisterMask;
};  

Members

PipelineFlushBeforeAndAfter
Whether to flush the pipeline both before and after.

TargetComputeUnitIndex
The index of the target compute unit.

TraceScope
The trace scope, as a D3D11X_THREAD_TRACE_SCOPE enumeration constant.

AllowSamplingGpuStalls
Whether to allow sampling GPU stalls.

PsEnable
Disables or enables thread tracing of pixel shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

VsEnable
Disables or enables thread tracing of all vertex shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

GsEnable
Disables or enables thread tracing of all geometry shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

EsEnable
Disables or enables thread tracing of all ES shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

HsEnable
Disables or enables thread tracing of all hull shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

LsEnable
Disables or enables thread tracing of all LS shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

CsEnable
Disables or enables thread tracing of all compute shader threads on the target CU, based on the specified D3D11X_THREAD_TRACE_PIPELINE_ENABLE enumeration constant.

TokenMask
Which types of event tokens are enabled in the trace output, as a combination of D3D11X_THREAD_TRACE_TOKEN_MASK enumeration values. Using more tokens leads to larger trace output.

InstructionMask
A combination of D3D11X_THREAD_TRACE_INSTRUCTION_MASK enumeration values, indicating which types of instructions should be considered when emitting instruction tokens in the trace output. InstructionMask is only relevant if instruction tokens have been enabled via the TokenMask field.

RegisterMask
The types of register write events to emit, as a combination of D3D11X_THREAD_TRACE_REGISTER_MASK enumeration values. Indicates which types of register write events should be emitted as tokens in the trace output. RegisterMask is only relevant if register write tokens have been enabled in the TokenMask field.

Remarks

This structure is passed into ID3D11DeviceContextX::StartThreadTrace.

Requirements

Header: Declared in d3d11_x.h.