Kohi Game Engine
vulkan_platform.h File Reference

This file contains the "front end interface" for where the platform and Vulkan meet. The implementation for this should exist in the corresponding .c file for a given platform. More...

#include <defines.h>

Go to the source code of this file.

Functions

b8 platform_create_vulkan_surface (struct vulkan_context *context)
 Creates and assigns a surface to the given context. More...
 
void platform_get_required_extension_names (const char ***names_darray)
 Appends the names of required extensions for this platform to the names_darray, which should be created and passed in. More...
 

Detailed Description

This file contains the "front end interface" for where the platform and Vulkan meet. The implementation for this should exist in the corresponding .c file for a given platform.

Author
Travis Vroman (travi.nosp@m.s@ko.nosp@m.hieng.nosp@m.ine..nosp@m.com)
Version
1.0
Date
2022-01-11

Function Documentation

◆ platform_create_vulkan_surface()

b8 platform_create_vulkan_surface ( struct vulkan_context context)

Creates and assigns a surface to the given context.

Parameters
contextA pointer to the Vulkan context.
Returns
True on success; otherwise false.

◆ platform_get_required_extension_names()

void platform_get_required_extension_names ( const char ***  names_darray)

Appends the names of required extensions for this platform to the names_darray, which should be created and passed in.

Parameters
names_darrayA pointer to the array names of required extension names. Must be a darray as this function adds names to the array.