mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Add use of GET_DEVICE_PROC_ADDR in Vulkan test
This commit is contained in:
parent
9b75bffc88
commit
440466524e
@ -1995,6 +1995,12 @@ static void demo_init_device(struct demo *demo) {
|
|||||||
|
|
||||||
err = vkCreateDevice(demo->gpu, &device, NULL, &demo->device);
|
err = vkCreateDevice(demo->gpu, &device, NULL, &demo->device);
|
||||||
assert(!err);
|
assert(!err);
|
||||||
|
|
||||||
|
GET_DEVICE_PROC_ADDR(demo->device, CreateSwapchainKHR);
|
||||||
|
GET_DEVICE_PROC_ADDR(demo->device, DestroySwapchainKHR);
|
||||||
|
GET_DEVICE_PROC_ADDR(demo->device, GetSwapchainImagesKHR);
|
||||||
|
GET_DEVICE_PROC_ADDR(demo->device, AcquireNextImageKHR);
|
||||||
|
GET_DEVICE_PROC_ADDR(demo->device, QueuePresentKHR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void demo_init_vk_swapchain(struct demo *demo) {
|
static void demo_init_vk_swapchain(struct demo *demo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user