File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ build /
2
+ CMakeLists.txt.user
Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ void volkLoadInstance(VkInstance instance)
104
104
volkGenLoadDevice (instance , vkGetInstanceProcAddrStub );
105
105
}
106
106
107
+ void volkLoadInstanceOnly (VkInstance instance )
108
+ {
109
+ loadedInstance = instance ;
110
+ volkGenLoadInstance (instance , vkGetInstanceProcAddrStub );
111
+ }
112
+
107
113
VkInstance volkGetLoadedInstance ()
108
114
{
109
115
return loadedInstance ;
Original file line number Diff line number Diff line change @@ -81,6 +81,12 @@ uint32_t volkGetInstanceVersion(void);
81
81
*/
82
82
void volkLoadInstance (VkInstance instance );
83
83
84
+ /**
85
+ * Load global function pointers using application-created VkInstance; call this function after creating the Vulkan instance.
86
+ * Skips loading device-based function pointers, requires usage of volkLoadDevice afterwards.
87
+ */
88
+ void volkLoadInstanceOnly (VkInstance instance );
89
+
84
90
/**
85
91
* Load global function pointers using application-created VkDevice; call this function after creating the Vulkan device.
86
92
*
@@ -92,13 +98,13 @@ void volkLoadDevice(VkDevice device);
92
98
* Return last VkInstance for which global function pointers have been loaded via volkLoadInstance(),
93
99
* or VK_NULL_HANDLE if volkLoadInstance() has not been called.
94
100
*/
95
- VkInstance volkGetLoadedInstance ();
101
+ VkInstance volkGetLoadedInstance (void );
96
102
97
103
/**
98
104
* Return last VkDevice for which global function pointers have been loaded via volkLoadDevice(),
99
105
* or VK_NULL_HANDLE if volkLoadDevice() has not been called.
100
106
*/
101
- VkDevice volkGetLoadedDevice ();
107
+ VkDevice volkGetLoadedDevice (void );
102
108
103
109
/**
104
110
* Load function pointers using application-created VkDevice into a table.
You can’t perform that action at this time.
0 commit comments