|
Size: 596
Comment:
|
← Revision 8 as of 2018-08-31 05:47:30 ⇥
Size: 1196
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| |
|
| Line 20: | Line 18: |
| This category contains functions for creating a Vulkan-backed swapchain and loading required Vulkan extensions. | This category contains functions for creating a Vulkan instance with the required Vulkan extensions for surface creation. The general flow of a Vulkan backed SDL application will be the following: 1. If necessary, use [[SDL_Vulkan_LoadLibrary]] and [[SDL_Vulkan_GetVkInstanceProcAddr]] to load the Vulkan library and query for driver function pointers (after initializing the video subsystem) 1. Query for required extensions using [[SDL_Vulkan_GetInstanceExtensions]] and use this information to create a {{{VkInstance}}} 1. Create a surface for the window to draw on using [[SDL_Vulkan_CreateSurface]] 1. When setting up pipelines and framebuffers for your newly created surface, use [[SDL_Vulkan_GetDrawableSize]] to query the surface extent |
| Line 23: | Line 31: |
| <<FullSearchCached(category:VulkanSupport -CategoryEnum -CategoryStruct -SGFunctions)>> | <<FullSearchCached(category:CategoryVulkan -CategoryEnum -CategoryStruct -title:SGFunctions)>> |
Vulkan Support
Include File(s): SDL_vulkan.h
Contents
Introduction
This category contains functions for creating a Vulkan instance with the required Vulkan extensions for surface creation.
The general flow of a Vulkan backed SDL application will be the following:
If necessary, use SDL_Vulkan_LoadLibrary and SDL_Vulkan_GetVkInstanceProcAddr to load the Vulkan library and query for driver function pointers (after initializing the video subsystem)
Query for required extensions using SDL_Vulkan_GetInstanceExtensions and use this information to create a VkInstance
Create a surface for the window to draw on using SDL_Vulkan_CreateSurface
When setting up pipelines and framebuffers for your newly created surface, use SDL_Vulkan_GetDrawableSize to query the surface extent
