ID3D12Debug3::SetEnableGPUBasedValidation method (d3d12sdklayers.h)

This method enables or disables GPU-based validation (GBV) before creating a device with the debug layer enabled.

Syntax

void SetEnableGPUBasedValidation(
  BOOL Enable
);

Parameters

Enable

Type: BOOL

TRUE to enable GPU-based validation, otherwise FALSE.

Return value

None

Remarks

GPU-based validation can be enabled/disabled only prior to creating a device. By default, GPU-based validation is disabled. To disable GPU-based validation after initially enabling it, the device must be fully released and recreated.

For more information, see Using D3D12 Debug Layer GPU-based validation.

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