MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / vkBeginCommandBuffer

Function vkBeginCommandBuffer

layersvt/generated/api_dump_dispatch.h:3096–3115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3094}
3095template <ApiDumpFormat Format>
3096VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo) {
3097 std::lock_guard<std::mutex> lg(ApiDumpInstance::current().outputMutex());
3098
3099 dump_function_head(ApiDumpInstance::current(), "vkBeginCommandBuffer", "commandBuffer, pBeginInfo", "VkResult");
3100 if constexpr (Format == ApiDumpFormat::Text) {
3101 if (ApiDumpInstance::current().settings().shouldPreDump() && ApiDumpInstance::current().shouldDumpOutput()) {
3102 dump_before_pre_dump_formatting<Format>(ApiDumpInstance::current().settings());
3103 dump_params_vkBeginCommandBuffer<Format>(ApiDumpInstance::current(), commandBuffer, pBeginInfo);
3104 }
3105 }
3106 VkResult result = device_dispatch_table(commandBuffer)->BeginCommandBuffer(commandBuffer, pBeginInfo);
3107 if (ApiDumpInstance::current().shouldDumpOutput()) {
3108 dump_return_value<Format>(ApiDumpInstance::current().settings(), "VkResult", result, dump_return_value_VkResult<Format>);
3109 dump_pre_function_formatting<Format>(ApiDumpInstance::current().settings());
3110 dump_params_vkBeginCommandBuffer<Format>(ApiDumpInstance::current(), commandBuffer, pBeginInfo);
3111 dump_post_function_formatting<Format>(ApiDumpInstance::current().settings());
3112 flush(ApiDumpInstance::current().settings());
3113 }
3114 return result;
3115}
3116template <ApiDumpFormat Format>
3117VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer(VkCommandBuffer commandBuffer) {
3118 std::lock_guard<std::mutex> lg(ApiDumpInstance::current().outputMutex());

Callers

nothing calls this directly

Calls 5

dump_function_headFunction · 0.85
device_dispatch_tableFunction · 0.85
flushFunction · 0.85
shouldPreDumpMethod · 0.80
shouldDumpOutputMethod · 0.80

Tested by

no test coverage detected