Skip to content

Commit

Permalink
nvapi-d3d12: Log capability type
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Apr 17, 2023
1 parent 35f256a commit 8a5f8b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nvapi_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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<D3D12_RAYTRACING_GEOMETRY_DESC>& geometryDescs, D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* d3dDesc) {
Expand Down

0 comments on commit 8a5f8b5

Please sign in to comment.