Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2018-08-30 17:43:39
Size: 1195
Editor: ninepoints
Comment:
Revision 7 as of 2018-08-30 17:44:18
Size: 1199
Editor: ninepoints
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
1. If necessary, use [[SDL_Vulkan_LoadLibrary]] and [[SDL_Vulkan_GetVkGetInstanceProcAddr]] to load the Vulkan library and query for driver function pointers (after initializing the video subsystem)  1. If necessary, use [[SDL_Vulkan_LoadLibrary]] and [[SDL_Vulkan_GetVkGetInstanceProcAddr]] to load the Vulkan library and query for driver function pointers (after initializing the video subsystem)
Line 24: Line 24:
1. Query for required extensions using [[SDL_Vulkan_GetInstanceExtensions]] and use this information to create a {{{VkInstance}}}  1. Query for required extensions using [[SDL_Vulkan_GetInstanceExtensions]] and use this information to create a {{{VkInstance}}}
Line 26: Line 26:
1. Create a surface for the window to draw on using [[SDL_Vulkan_CreateSurface]]  1. Create a surface for the window to draw on using [[SDL_Vulkan_CreateSurface]]
Line 28: Line 28:
1. When setting up pipelines and framebuffers for your newly created surface, use [[SDL_Vulkan_GetDrawableSize]] to query the surface extent  1. When setting up pipelines and framebuffers for your newly created surface, use [[SDL_Vulkan_GetDrawableSize]] to query the surface extent

Vulkan Support

Include File(s): SDL_vulkan.h

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:

  1. If necessary, use SDL_Vulkan_LoadLibrary and SDL_Vulkan_GetVkGetInstanceProcAddr to load the Vulkan library and query for driver function pointers (after initializing the video subsystem)

  2. Query for required extensions using SDL_Vulkan_GetInstanceExtensions and use this information to create a VkInstance

  3. Create a surface for the window to draw on using SDL_Vulkan_CreateSurface

  4. When setting up pipelines and framebuffers for your newly created surface, use SDL_Vulkan_GetDrawableSize to query the surface extent

Functions


CategoryCategory

None: CategoryVulkan (last edited 2018-08-31 05:47:30 by ninepoints)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit