ID3D12Debug2::SetGPUBasedValidationFlags method (d3d12sdklayers.h)

This method configures the level of GPU-based validation that the debug device is to perform at runtime.

Syntax

void SetGPUBasedValidationFlags(
  D3D12_GPU_BASED_VALIDATION_FLAGS Flags
);

Parameters

Flags

Type: D3D12_GPU_BASED_VALIDATION_FLAGS

Specifies the level of GPU-based validation to perform at runtime.

Return value

None

Remarks

This method overrides the default behavior of GPU-based validation so it must be called before creating the Direct3D 12 device. These settings can't be changed or cancelled after the device is created. If you want to change the behavior of GPU-based validation at a later time, the device must be destroyed and recreated with different parameters.

Requirements

Requirement Value
Target Platform Windows
Header d3d12sdklayers.h

See also

ID3D12Debug2