CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::VKFuncTable Struct Reference

#include <CeresEngine/RenderAPI/Vulkan/VKLoader.hpp>

Public Member Functions

 VKFuncTable () noexcept=default
 Creates an empty VKFuncTable.
 
 VKFuncTable (VkInstance instance)
 Loads the Vulkan function pointers from the Vulkan driver.
 
 VKFuncTable (VkInstance instance, VkDevice device)
 Loads the Vulkan function pointers from the Vulkan driver.
 
VKSymbol forInstance (const char *name) const noexcept
 Resolves a symbol by name.
 
VKSymbol forDevice (const char *name) const noexcept
 Resolves a symbol by name.
 

Public Attributes

VkInstance instance = nullptr
 The VkInstance to load pointers for.
 
VkDevice device = nullptr
 The VkDevice to load pointers for.
 

Constructor & Destructor Documentation

◆ VKFuncTable() [1/3]

CeresEngine::VKFuncTable::VKFuncTable ( )
defaultnoexcept

Creates an empty VKFuncTable.

◆ VKFuncTable() [2/3]

CeresEngine::VKFuncTable::VKFuncTable ( VkInstance  instance)
explicit

Loads the Vulkan function pointers from the Vulkan driver.

Parameters
instanceThe VkInstance to load pointers for

◆ VKFuncTable() [3/3]

CeresEngine::VKFuncTable::VKFuncTable ( VkInstance  instance,
VkDevice  device 
)
explicit

Loads the Vulkan function pointers from the Vulkan driver.

Parameters
instanceThe VkInstance to load pointers for
deviceThe VkDevice to load pointers for

Member Function Documentation

◆ forDevice()

VKSymbol CeresEngine::VKFuncTable::forDevice ( const char name) const
noexcept

Resolves a symbol by name.

Parameters
nameThe symbol name
Returns
The normalize symbol

◆ forInstance()

VKSymbol CeresEngine::VKFuncTable::forInstance ( const char name) const
noexcept

Resolves a symbol by name.

Parameters
nameThe symbol name
Returns
The normalize symbol

Member Data Documentation

◆ device

VkDevice CeresEngine::VKFuncTable::device = nullptr

The VkDevice to load pointers for.

◆ instance

VkInstance CeresEngine::VKFuncTable::instance = nullptr

The VkInstance to load pointers for.


The documentation for this struct was generated from the following file: