blob: 719ba1319d4ece6fecc88bbd06a2b9495e0a70c8 [file] [log] [blame]
/*
* 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 uint32_t VKAPI_CALL vkCreateAndroidSurfaceKHR(VkInstance instance, VkAndroidSurfaceCreateInfoKHR* pCreateInfo, VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface) {
Spy* s = Spy::get();
s->VulkanSpy::enter("vkCreateAndroidSurfaceKHR");
auto _result_ = s->vkCreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
s->VulkanSpy::exit();
return _result_;
}
VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, VkAllocationCallbacks* pAllocator) {
Spy* s = Spy::get();
s->VulkanSpy::enter("vkDestroySurfaceKHR");
s->vkDestroySurfaceKHR(instance, surface, pAllocator);
s->VulkanSpy::exit();
}
VKAPI_ATTR uint32_t VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR* pCreateInfo, VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface) {
Spy* s = Spy::get();
s->VulkanSpy::enter("vkCreateDisplayPlaneSurfaceKHR");
auto _result_ = s->vkCreateDisplayPlaneSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
s->VulkanSpy::exit();
return _result_;
}
VKAPI_ATTR uint32_t VKAPI_CALL vkCreateDebugReportCallbackEXT(VkInstance instance, VkDebugReportCallbackCreateInfoEXT* pCreateInfo, VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback) {
Spy* s = Spy::get();
s->VulkanSpy::enter("vkCreateDebugReportCallbackEXT");
auto _result_ = s->vkCreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pCallback);
s->VulkanSpy::exit();
return _result_;
}
VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT(VkInstance instance, VkDebugReportCallbackEXT callback, VkAllocationCallbacks* pAllocator) {
Spy* s = Spy::get();
s->VulkanSpy::enter("vkDestroyDebugReportCallbackEXT");
s->vkDestroyDebugReportCallbackEXT(instance, callback, pAllocator);
s->VulkanSpy::exit();
}
VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT(VkInstance instance, VkDebugReportFlagsEXT flags, uint32_t objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage) {
Spy* s = Spy::get();
s->VulkanSpy::enter("vkDebugReportMessageEXT");
s->vkDebugReportMessageEXT(instance, flags, objectType, object, location, messageCode, pLayerPrefix, pMessage);
s->VulkanSpy::exit();
}
}