From 683fcbe5a44ce2d296ea3191e9d11791f165630d Mon Sep 17 00:00:00 2001 From: hulakdar Date: Sat, 22 Jan 2022 11:24:59 +0200 Subject: [PATCH] Actually check for the required feature --- TracyD3D12.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TracyD3D12.hpp b/TracyD3D12.hpp index 1c1d97dc..1276b9e6 100644 --- a/TracyD3D12.hpp +++ b/TracyD3D12.hpp @@ -91,10 +91,8 @@ namespace tracy { D3D12_FEATURE_DATA_D3D12_OPTIONS3 featureData{}; - if (FAILED(device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS3, &featureData, sizeof(featureData)))) - { - assert(false && "Platform does not support profiling of copy queues."); - } + bool Success = SUCCEEDED(device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS3, &featureData, sizeof(featureData))); + assert(Success && featureData.CopyQueueTimestampQueriesSupported && "Platform does not support profiling of copy queues."); } uint64_t timestampFrequency;