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 committed Oct 26, 2024
1 parent c5e9f4a commit 36fd30b
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 36fd30b

Please sign in to comment.