Fix handling of AS copies

This commit is contained in:
baldurk
2024-05-21 23:47:15 +01:00
parent 7e8aa58ea1
commit 9332bd34f9
@@ -1273,8 +1273,8 @@ void WrappedID3D12GraphicsCommandList::CopyRaytracingAccelerationStructure(
WrappedID3D12Resource::GetResIDFromAddr(DestAccelerationStructureData, destASBId, destASBOffset);
if(Mode != D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE &&
Mode != D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS)
if(Mode == D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE ||
Mode == D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS)
{
// these outputs are not ASs themselves, so we don't need to do any further tracking
}