From 8a5f8b51c82fb09774c221b2751b53a03afa82d8 Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Sun, 16 Apr 2023 16:25:55 +0200 Subject: [PATCH] nvapi-d3d12: Log capability type --- src/nvapi_d3d12.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nvapi_d3d12.cpp b/src/nvapi_d3d12.cpp index a78d6c99..1382bf10 100644 --- a/src/nvapi_d3d12.cpp +++ b/src/nvapi_d3d12.cpp @@ -243,7 +243,6 @@ extern "C" { NvAPI_Status __cdecl NvAPI_D3D12_GetRaytracingCaps(ID3D12Device* pDevice, NVAPI_D3D12_RAYTRACING_CAPS_TYPE type, void* pData, size_t dataSize) { constexpr auto n = __func__; - static bool alreadyLoggedOk = false; if (pDevice == nullptr || pData == nullptr) return InvalidPointer(n); @@ -268,7 +267,7 @@ extern "C" { return InvalidArgument(n); } - return Ok(n, alreadyLoggedOk); + return Ok(str::format(n, " (", type, ")")); } static bool ConvertBuildRaytracingAccelerationStructureInputs(const NVAPI_D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_EX* nvDesc, std::vector& geometryDescs, D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* d3dDesc) {