mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Actually check for the required feature
This commit is contained in:
parent
332c3aa242
commit
683fcbe5a4
@ -91,10 +91,8 @@ namespace tracy
|
|||||||
{
|
{
|
||||||
D3D12_FEATURE_DATA_D3D12_OPTIONS3 featureData{};
|
D3D12_FEATURE_DATA_D3D12_OPTIONS3 featureData{};
|
||||||
|
|
||||||
if (FAILED(device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS3, &featureData, sizeof(featureData))))
|
bool Success = SUCCEEDED(device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS3, &featureData, sizeof(featureData)));
|
||||||
{
|
assert(Success && featureData.CopyQueueTimestampQueriesSupported && "Platform does not support profiling of copy queues.");
|
||||||
assert(false && "Platform does not support profiling of copy queues.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t timestampFrequency;
|
uint64_t timestampFrequency;
|
||||||
|
Loading…
Reference in New Issue
Block a user