mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 15:24:34 +00:00
Shorthand populated init
This commit is contained in:
parent
b963aeb94b
commit
2c0fe72ad9
@ -193,8 +193,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 device, PFN_vkGetDeviceProcAddr procAddr) : device(device) {\n'
|
body += '\tDispatchTable(VkDevice device, PFN_vkGetDeviceProcAddr procAddr) : device(device), populated(true) {\n'
|
||||||
body += '\t\tpopulated = true;\n'
|
|
||||||
|
|
||||||
proxy_section = ''
|
proxy_section = ''
|
||||||
fp_decl_section = ''
|
fp_decl_section = ''
|
||||||
|
@ -27,8 +27,7 @@ namespace vkb {
|
|||||||
|
|
||||||
struct DispatchTable {
|
struct DispatchTable {
|
||||||
DispatchTable() = default;
|
DispatchTable() = default;
|
||||||
DispatchTable(VkDevice device, PFN_vkGetDeviceProcAddr procAddr) : device(device) {
|
DispatchTable(VkDevice device, PFN_vkGetDeviceProcAddr procAddr) : device(device), populated(true) {
|
||||||
populated = true;
|
|
||||||
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");
|
||||||
|
Loading…
Reference in New Issue
Block a user