ID3D12Debug3::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 D3D12 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
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header d3d12sdklayers.h

See also

ID3D12Debug3