TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::vulkan::instance_context Class Referenceexport
Inheritance diagram for atlas::vulkan::instance_context:
atlas::graphics_context

Public Member Functions

 instance_context (const std::string &)
 
- Public Member Functions inherited from atlas::graphics_context
void submit_resource_free (const std::function< void()> &p_resource)
 
VkInstance handle () const
 
void destroy ()
 

Static Public Member Functions

static PFN_vkSetDebugUtilsObjectNameEXT get_debug_object_name ()
 returns function pointer to allow for setting debug object name
 
static void submit_resource_free (std::function< void()> &&p_resource)
 used for providing a way to submit all vulkan metaobjects before the destruction of the vulkan logical device
 
static physical_device physical_driver ()
 
static device logical_device ()
 

Protected Member Functions

VkInstance context_handle () const override
 
void context_submit_resource_free (const std::function< void()> &p_resource) override
 
void destroy_context () override
 

Constructor & Destructor Documentation

◆ instance_context()

atlas::vulkan::instance_context::instance_context ( const std::string &  )
inline
Note
Setting up the required extensions for vulkan

Member Function Documentation

◆ context_handle()

VkInstance atlas::vulkan::instance_context::context_handle ( ) const
inlineoverrideprotectedvirtual

◆ context_submit_resource_free()

void atlas::vulkan::instance_context::context_submit_resource_free ( const std::function< void()> &  p_resource)
inlineoverrideprotectedvirtual

◆ destroy_context()

void atlas::vulkan::instance_context::destroy_context ( )
inlineoverrideprotectedvirtual

◆ get_debug_object_name()

static PFN_vkSetDebugUtilsObjectNameEXT atlas::vulkan::instance_context::get_debug_object_name ( )
inlinestatic

returns function pointer to allow for setting debug object name

This allows for utilizing vkSetDebugUtilsObjectNameEXT during debug builds

This allows for setting up object names that is useful to the programmer when a validation layer error message occurs unexpectedly

◆ submit_resource_free()

static void atlas::vulkan::instance_context::submit_resource_free ( std::function< void()> &&  p_resource)
inlinestatic

used for providing a way to submit all vulkan metaobjects before the destruction of the vulkan logical device

Per vulkan specification, it is required to have all object handles created with the logical device to be destroyed before the logical device itself gets destroyed during post cleanup

This function was a means to ensure that the destruction of those vulkan child objects are handled in that order correctly


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