Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Add synchronization2 functions to function_table.h
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoeris committed May 2, 2022
1 parent bb4bb7b commit 7bd5a56
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions vulkan_wrapper/function_table.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2017 Google Inc.
/* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -147,9 +147,9 @@ class InstanceFunctions {
LAZY_FUNCTION(vkDestroyDebugUtilsMessengerEXT);
LAZY_FUNCTION(vkSubmitDebugUtilsMessageEXT);
LAZY_FUNCTION(vkGetPhysicalDeviceDisplayProperties2KHR);
LAZY_FUNCTION(vkGetPhysicalDeviceDisplayPlaneProperties2KHR);
LAZY_FUNCTION(vkGetDisplayModeProperties2KHR);
LAZY_FUNCTION(vkGetDisplayPlaneCapabilities2KHR);
LAZY_FUNCTION(vkGetPhysicalDeviceDisplayPlaneProperties2KHR);
LAZY_FUNCTION(vkGetDisplayModeProperties2KHR);
LAZY_FUNCTION(vkGetDisplayPlaneCapabilities2KHR);
#if defined __ANDROID__
LAZY_FUNCTION(vkCreateAndroidSurfaceKHR);
#elif defined __ggp__
Expand Down Expand Up @@ -185,6 +185,7 @@ struct CommandBufferFunctions {
CONSTRUCT_LAZY_FUNCTION(vkEndCommandBuffer),
CONSTRUCT_LAZY_FUNCTION(vkResetCommandBuffer),
CONSTRUCT_LAZY_FUNCTION(vkCmdPipelineBarrier),
CONSTRUCT_LAZY_FUNCTION(vkCmdPipelineBarrier2KHR),
CONSTRUCT_LAZY_FUNCTION(vkCmdCopyBufferToImage),
CONSTRUCT_LAZY_FUNCTION(vkCmdCopyImageToBuffer),
CONSTRUCT_LAZY_FUNCTION(vkCmdBeginRenderPass),
Expand Down Expand Up @@ -230,9 +231,11 @@ struct CommandBufferFunctions {
CONSTRUCT_LAZY_FUNCTION(vkCmdEndQuery),
CONSTRUCT_LAZY_FUNCTION(vkCmdCopyQueryPoolResults),
CONSTRUCT_LAZY_FUNCTION(vkCmdWriteTimestamp),
CONSTRUCT_LAZY_FUNCTION(vkCmdWriteTimestamp2KHR),
CONSTRUCT_LAZY_FUNCTION(vkCmdSetEvent),
CONSTRUCT_LAZY_FUNCTION(vkCmdResetEvent),
CONSTRUCT_LAZY_FUNCTION(vkCmdWaitEvents),
CONSTRUCT_LAZY_FUNCTION(vkCmdWaitEvents2KHR),
CONSTRUCT_LAZY_FUNCTION(vkCmdSetDeviceMask),
CONSTRUCT_LAZY_FUNCTION(vkCmdDrawIndexedIndirectCountKHR),
CONSTRUCT_LAZY_FUNCTION(vkCmdBeginDebugUtilsLabelEXT),
Expand Down Expand Up @@ -261,6 +264,7 @@ struct CommandBufferFunctions {
LAZY_FUNCTION(vkEndCommandBuffer);
LAZY_FUNCTION(vkResetCommandBuffer);
LAZY_FUNCTION(vkCmdPipelineBarrier);
LAZY_FUNCTION(vkCmdPipelineBarrier2KHR);
LAZY_FUNCTION(vkCmdCopyBufferToImage);
LAZY_FUNCTION(vkCmdCopyImageToBuffer);
LAZY_FUNCTION(vkCmdBeginRenderPass);
Expand Down Expand Up @@ -306,9 +310,11 @@ struct CommandBufferFunctions {
LAZY_FUNCTION(vkCmdEndQuery);
LAZY_FUNCTION(vkCmdCopyQueryPoolResults);
LAZY_FUNCTION(vkCmdWriteTimestamp);
LAZY_FUNCTION(vkCmdWriteTimestamp2KHR);
LAZY_FUNCTION(vkCmdSetEvent);
LAZY_FUNCTION(vkCmdResetEvent);
LAZY_FUNCTION(vkCmdWaitEvents);
LAZY_FUNCTION(vkCmdWaitEvents2KHR);
LAZY_FUNCTION(vkCmdSetDeviceMask);
LAZY_FUNCTION(vkCmdDrawIndexedIndirectCountKHR);
LAZY_FUNCTION(vkCmdBeginDebugUtilsLabelEXT);
Expand Down Expand Up @@ -337,6 +343,7 @@ struct QueueFunctions {
#define CONSTRUCT_LAZY_FUNCTION(function) \
function(device, #function, device_functions)
CONSTRUCT_LAZY_FUNCTION(vkQueueSubmit),
CONSTRUCT_LAZY_FUNCTION(vkQueueSubmit2KHR),
CONSTRUCT_LAZY_FUNCTION(vkQueueWaitIdle),
CONSTRUCT_LAZY_FUNCTION(vkQueuePresentKHR),
CONSTRUCT_LAZY_FUNCTION(vkQueueBindSparse),
Expand All @@ -350,6 +357,7 @@ struct QueueFunctions {
public:
#define LAZY_FUNCTION(function) LazyDeviceFunction<PFN_##function> function;
LAZY_FUNCTION(vkQueueSubmit);
LAZY_FUNCTION(vkQueueSubmit2KHR);
LAZY_FUNCTION(vkQueueWaitIdle);
LAZY_FUNCTION(vkQueuePresentKHR);
LAZY_FUNCTION(vkQueueBindSparse);
Expand Down

0 comments on commit 7bd5a56

Please sign in to comment.