Skip to content

Commit

Permalink
Make RT AS commands 'actions'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmannett85-arm authored and baldurk committed Oct 28, 2024
1 parent e7975ca commit cf76de3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions renderdoc/driver/vulkan/wrappers/vk_cmd_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7883,6 +7883,11 @@ bool WrappedVulkan::Serialise_vkCmdBuildAccelerationStructuresKHR(
ObjDisp(commandBuffer)
->CmdBuildAccelerationStructuresKHR(Unwrap(commandBuffer), infoCount, unwrappedInfos,
tmpBuildRangeInfos.data());

AddEvent();
ActionDescription action;
action.flags = ActionFlags::BuildAccStruct;
AddAction(action);
}

return true;
Expand Down Expand Up @@ -7964,6 +7969,11 @@ bool WrappedVulkan::Serialise_vkCmdCopyAccelerationStructureKHR(
unwrappedInfo.dst = Unwrap(unwrappedInfo.dst);

ObjDisp(commandBuffer)->CmdCopyAccelerationStructureKHR(Unwrap(commandBuffer), &unwrappedInfo);

AddEvent();
ActionDescription action;
action.flags = ActionFlags::BuildAccStruct;
AddAction(action);
}

return true;
Expand Down Expand Up @@ -8042,6 +8052,11 @@ bool WrappedVulkan::Serialise_vkCmdCopyMemoryToAccelerationStructureKHR(
unwrappedInfo.dst = Unwrap(unwrappedInfo.dst);

ObjDisp(commandBuffer)->CmdCopyMemoryToAccelerationStructureKHR(Unwrap(commandBuffer), &unwrappedInfo);

AddEvent();
ActionDescription action;
action.flags = ActionFlags::BuildAccStruct;
AddAction(action);
}

return true;
Expand Down

0 comments on commit cf76de3

Please sign in to comment.