diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2020-12-26 00:55:51 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2020-12-26 00:55:51 +0100 |
| commit | ca0b2f48c5017b5fb615f5db0755e4f730de4fd7 (patch) | |
| tree | b9a3afc39568571a6ea960956aa265478cae8ff6 /src/vulkan-loader.cpp | |
| parent | c88447747f1943c55a5572eec3bb66f241402088 (diff) | |
Working compute pipeline
Diffstat (limited to 'src/vulkan-loader.cpp')
| -rw-r--r-- | src/vulkan-loader.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vulkan-loader.cpp b/src/vulkan-loader.cpp index 32aa49b..f4d9547 100644 --- a/src/vulkan-loader.cpp +++ b/src/vulkan-loader.cpp @@ -45,10 +45,10 @@ void Load_##name() VULKAN_APPLICATION_FUNCTIONS #undef X -#define X(name) \ -void Load_##name(VkInstance _instance) \ +#define X(name) \ +void Load_##name(VkInstance instance) \ { \ - name = reinterpret_cast<PFN_##name>(vkGetInstanceProcAddr(_instance, #name)); \ + name = reinterpret_cast<PFN_##name>(vkGetInstanceProcAddr(instance, #name)); \ if (!name) { \ std::cout << "Cannot load vulkan function " << #name << std::endl; \ } \ @@ -57,10 +57,10 @@ VULKAN_INSTANCE_FUNCTIONS PLATFORM_VULKAN_INSTANCE_FUNCTIONS #undef X -#define X(name) \ -void Load_##name(VkDevice _device) \ +#define X(name) \ +void Load_##name(VkDevice device) \ { \ - name = reinterpret_cast<PFN_##name>(vkGetDeviceProcAddr(_device, #name)); \ + name = reinterpret_cast<PFN_##name>(vkGetDeviceProcAddr(device, #name)); \ if (!name) { \ std::cout << "Cannot load vulkan function " << #name << std::endl; \ } \ @@ -84,7 +84,7 @@ void load_instance_functions(VkInstance instance) { } void load_device_functions(VkDevice device) { -#define X(name) void Load_##name(VkDevice _device); +#define X(name) Load_##name(device); VULKAN_DEVICE_FUNCTIONS #undef X } |
