Skip to content

Commit

Permalink
nvapi-d3d12: Fallback to core CheckDriverMatchingIdentifier for RTAS
Browse files Browse the repository at this point in the history
  • Loading branch information
Saancreed committed May 31, 2024
1 parent 10ddafd commit 24f575d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/nvapi_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,15 @@ extern "C" {
}
}

return NoImplementation(n);
if (pParams->version != NVAPI_CHECK_DRIVER_MATCHING_IDENTIFIER_EX_PARAMS_VER1)
return IncompatibleStructVersion(n);

if (pParams->serializedDataType == NVAPI_D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE_EX) {
pParams->checkStatus = pDevice->CheckDriverMatchingIdentifier(D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE, pParams->pIdentifierToCheck);
return Ok(n, alreadyLoggedOk);
}

return NotSupported(n);
}

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 24f575d

Please sign in to comment.