Forgot to remove const ref

This commit is contained in:
Cody Goodson 2021-05-20 03:40:14 -05:00 committed by Charles Giessen
parent 45419be295
commit dd1df1396c
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ body = '\n#pragma once\n\n#include <vulkan/vulkan.h>\n\n'
body += 'namespace vkb {\n\n' body += 'namespace vkb {\n\n'
body += 'struct DispatchTable {\n' body += 'struct DispatchTable {\n'
body += '\tDispatchTable() = default;\n' body += '\tDispatchTable() = default;\n'
body += '\tDispatchTable(VkDevice const& device, PFN_vkGetDeviceProcAddr const& procAddr) : device(device) {\n' body += '\tDispatchTable(VkDevice device, PFN_vkGetDeviceProcAddr procAddr) : device(device) {\n'
proxy_section = '' proxy_section = ''
fp_decl_section = '' fp_decl_section = ''

View File

@ -27,7 +27,7 @@ namespace vkb {
struct DispatchTable { struct DispatchTable {
DispatchTable() = default; DispatchTable() = default;
DispatchTable(VkDevice const& device, PFN_vkGetDeviceProcAddr const& procAddr) : device(device) { DispatchTable(VkDevice device, PFN_vkGetDeviceProcAddr procAddr) : device(device) {
fp_vkGetDeviceQueue = (PFN_vkGetDeviceQueue)procAddr(device, "vkGetDeviceQueue"); fp_vkGetDeviceQueue = (PFN_vkGetDeviceQueue)procAddr(device, "vkGetDeviceQueue");
fp_vkQueueSubmit = (PFN_vkQueueSubmit)procAddr(device, "vkQueueSubmit"); fp_vkQueueSubmit = (PFN_vkQueueSubmit)procAddr(device, "vkQueueSubmit");
fp_vkQueueWaitIdle = (PFN_vkQueueWaitIdle)procAddr(device, "vkQueueWaitIdle"); fp_vkQueueWaitIdle = (PFN_vkQueueWaitIdle)procAddr(device, "vkQueueWaitIdle");