| /* |
| * Copyright 2015, The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| * |
| * THIS FILE WAS GENERATED BY apic. DO NOT EDIT. |
| */ |
| |
| |
| #include "vulkan_types.h" |
| #include "vulkan_spy.h" |
| #include "vulkan_exports.h" |
| #include "spy.h" |
| |
| #include <gapic/get_gfx_proc_address.h> |
| #include <gapic/lock.h> |
| #include <gapic/log.h> |
| #include <gapic/target.h> // STDCALL |
| |
| #include <memory> |
| |
| #include <cstring> |
| |
| using namespace gapii; |
| |
| namespace gapii { |
| VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceFeatures"); |
| s->vkGetPhysicalDeviceFeatures(physicalDevice, pFeatures); |
| s->VulkanSpy::exit(); |
| } |
| VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, uint32_t format, VkFormatProperties* pFormatProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceFormatProperties"); |
| s->vkGetPhysicalDeviceFormatProperties(physicalDevice, format, pFormatProperties); |
| s->VulkanSpy::exit(); |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, uint32_t format, uint32_t type, uint32_t tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceImageFormatProperties"); |
| auto _result_ = s->vkGetPhysicalDeviceImageFormatProperties(physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceProperties"); |
| s->vkGetPhysicalDeviceProperties(physicalDevice, pProperties); |
| s->VulkanSpy::exit(); |
| } |
| VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceQueueFamilyProperties"); |
| s->vkGetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); |
| s->VulkanSpy::exit(); |
| } |
| VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceMemoryProperties"); |
| s->vkGetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties); |
| s->VulkanSpy::exit(); |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkEnumerateDeviceExtensionProperties(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkEnumerateDeviceExtensionProperties"); |
| auto _result_ = s->vkEnumerateDeviceExtensionProperties(physicalDevice, pLayerName, pPropertyCount, pProperties); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, uint32_t format, uint32_t type, uint32_t samples, VkImageUsageFlags usage, uint32_t tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceSparseImageFormatProperties"); |
| s->vkGetPhysicalDeviceSparseImageFormatProperties(physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties); |
| s->VulkanSpy::exit(); |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceSurfaceSupportKHR"); |
| auto _result_ = s->vkGetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface, pSupported); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceSurfaceCapabilitiesKHR"); |
| auto _result_ = s->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice, surface, pSurfaceCapabilities); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceSurfaceFormatsKHR"); |
| auto _result_ = s->vkGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, pSurfaceFormatCount, pSurfaceFormats); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, uint32_t* pPresentModes) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceSurfacePresentModesKHR"); |
| auto _result_ = s->vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface, pPresentModeCount, pPresentModes); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceDisplayPropertiesKHR"); |
| auto _result_ = s->vkGetPhysicalDeviceDisplayPropertiesKHR(physicalDevice, pPropertyCount, pProperties); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetPhysicalDeviceDisplayPlanePropertiesKHR"); |
| auto _result_ = s->vkGetPhysicalDeviceDisplayPlanePropertiesKHR(physicalDevice, pPropertyCount, pProperties); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetDisplayPlaneSupportedDisplaysKHR"); |
| auto _result_ = s->vkGetDisplayPlaneSupportedDisplaysKHR(physicalDevice, planeIndex, pDisplayCount, pDisplays); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetDisplayModePropertiesKHR"); |
| auto _result_ = s->vkGetDisplayModePropertiesKHR(physicalDevice, display, pPropertyCount, pProperties); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, VkDisplayKHR display, VkDisplayModeCreateInfoKHR* pCreateInfo, VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkCreateDisplayModeKHR"); |
| auto _result_ = s->vkCreateDisplayModeKHR(physicalDevice, display, pCreateInfo, pAllocator, pMode); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| VKAPI_ATTR uint32_t VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities) { |
| Spy* s = Spy::get(); |
| s->VulkanSpy::enter("vkGetDisplayPlaneCapabilitiesKHR"); |
| auto _result_ = s->vkGetDisplayPlaneCapabilitiesKHR(physicalDevice, mode, planeIndex, pCapabilities); |
| s->VulkanSpy::exit(); |
| return _result_; |
| } |
| } |