From 8364d132a4c605bee2be66bd68a1ed66d72dd08f Mon Sep 17 00:00:00 2001 From: Andrew Cox Date: Wed, 10 May 2023 15:23:43 +0100 Subject: [PATCH] Documented Vulkan JSON WriteApiCallToFile() --- framework/decode/vulkan_export_json_consumer_base.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/decode/vulkan_export_json_consumer_base.h b/framework/decode/vulkan_export_json_consumer_base.h index 6a95b13fc2..de0ad422ab 100644 --- a/framework/decode/vulkan_export_json_consumer_base.h +++ b/framework/decode/vulkan_export_json_consumer_base.h @@ -218,6 +218,9 @@ class VulkanExportJsonConsumerBase : public VulkanConsumer, public AnnotationHan nlohmann::ordered_json& WriteApiCallStart(const ApiCallInfo& call_info, const std::string& command_name); + /// A utility wrapper so that manual output functions can provide a lambda which only needs to output + /// the fields unique to their call and this tops and tails with the standard boilerplate, defining it + /// once here. Generated functions avoid the indirection through this. template inline void WriteApiCallToFile(const ApiCallInfo& call_info, const std::string& command_name, ToJsonFunctionType toJsonFunction)