API Documentation
Loading...
Searching...
No Matches
VulkanInstance Class Reference

#include <VulkanInstance.h>

Collaboration diagram for VulkanInstance:
[legend]

Public Member Functions

 VulkanInstance ()
 
 VulkanInstance (VulkanInstance &&instance) noexcept
 
void setDeviceLost ()
 
virtual ~VulkanInstance ()
 
bool isValid () const
 
virtual void init ()
 
void setLog (ProgressInfo *log)
 
ProgressInfolog ()
 
void cleanup ()
 
const StringsurfaceType () const
 
VkInstance vkInstance () const
 
bool supportsKHRSwapchain () const
 
bool supportsTriangleFan () const
 
bool supportsValidation () const
 
const Buffer< String > & validationLayers () const
 
const Buffer< VkPhysicalDevice > & physicalDevices () const
 
virtual uint04 deviceSuitableScore (VkPhysicalDevice device)
 
bool isSoftwareRendered () const
 
String vulkanLibUsed () const
 

Static Public Member Functions

static void setupModule (Module &module)
 
static Module VulkanBackupModule ()
 
static DynamicPointer< VulkanInstance > & DefaultVulkanInstance ()
 
static String HardwareRenderedVulkanLib ()
 
static String SoftwareRenderedVulkanLib ()
 

Static Public Attributes

static Buffer< VulkanInstance * > s_instances
 

Protected Member Functions

virtual VkResult createVkInstance (const VkInstanceCreateInfo &create_info)
 
virtual VkInstanceCreateInfo createInfo ()
 
virtual VkApplicationInfo applicationInfo (const String &app_name)
 
virtual uint04 setupExtensions (const char **&extensions)
 
virtual uint04 setupLayers (const char **&layers)
 
void initializeAll ()
 
bool checkLayerSupport (const String &layer)
 
bool checkExtensionSupport (const String &layer)
 
bool checkValidationSupport ()
 
virtual void setAvailablePhysicalDevices ()
 
virtual void setupInstance ()
 
virtual void setAvailableExtensionInfo ()
 
virtual void setAvailableLayerInfo ()
 
virtual void setupDebug ()
 
virtual VkSurfaceFormatKHR chooseSwapSurfaceFormat (const Buffer< VkSurfaceFormatKHR, uint04, ObjectAllocator< true > > &availableFormats)
 
Time creationTime () const
 

Protected Attributes

VkInstance m_vk_instance
 
ProgressInfom_log
 
VkDebugReportCallbackEXT m_debug_callback
 
Buffer< VkExtensionProperties, uint04, ObjectAllocator< true > > m_available_extension_info
 
Buffer< VkLayerProperties, uint04, ObjectAllocator< true > > m_available_layer_info
 
Buffer< VkPhysicalDevice > m_available_physical_devices
 
Buffer< Stringm_extensions
 
Buffer< Stringm_validation_layers
 
bool m_supports_validation
 
bool m_is_init = false
 
bool m_is_software_rendered = false
 
bool m_supports_tri_fan
 
String m_surface_type
 
Time m_creation_time
 

Constructor & Destructor Documentation

◆ VulkanInstance() [1/2]

◆ VulkanInstance() [2/2]

VulkanInstance ( VulkanInstance && instance)
noexcept

◆ ~VulkanInstance()

~VulkanInstance ( )
virtual

Member Function Documentation

◆ applicationInfo()

VkApplicationInfo applicationInfo ( const String & app_name)
protectedvirtual

◆ checkExtensionSupport()

bool checkExtensionSupport ( const String & layer)
protected

◆ checkLayerSupport()

bool checkLayerSupport ( const String & layer)
protected

◆ checkValidationSupport()

bool checkValidationSupport ( )
protected

◆ chooseSwapSurfaceFormat()

VkSurfaceFormatKHR chooseSwapSurfaceFormat ( const Buffer< VkSurfaceFormatKHR, uint04, ObjectAllocator< true > > & availableFormats)
protectedvirtual

◆ cleanup()

void cleanup ( )

◆ createInfo()

VkInstanceCreateInfo createInfo ( )
protectedvirtual

◆ createVkInstance()

VkResult createVkInstance ( const VkInstanceCreateInfo & create_info)
protectedvirtual

◆ creationTime()

Time creationTime ( ) const
inlineprotected

◆ DefaultVulkanInstance()

DynamicPointer< VulkanInstance > & DefaultVulkanInstance ( )
static

◆ deviceSuitableScore()

uint04 deviceSuitableScore ( VkPhysicalDevice device)
virtual

deviceProperties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU &&‍/ deviceFeatures.geometryShader;

◆ HardwareRenderedVulkanLib()

String HardwareRenderedVulkanLib ( )
static

◆ init()

void init ( )
virtual

◆ initializeAll()

void initializeAll ( )
protected

◆ isSoftwareRendered()

bool isSoftwareRendered ( ) const

◆ isValid()

bool isValid ( ) const

◆ log()

ProgressInfo * log ( )
inline

◆ physicalDevices()

const Buffer< VkPhysicalDevice > & physicalDevices ( ) const
inline

◆ setAvailableExtensionInfo()

void setAvailableExtensionInfo ( )
protectedvirtual

◆ setAvailableLayerInfo()

void setAvailableLayerInfo ( )
protectedvirtual

◆ setAvailablePhysicalDevices()

void setAvailablePhysicalDevices ( )
protectedvirtual

◆ setDeviceLost()

void setDeviceLost ( )

◆ setLog()

void setLog ( ProgressInfo * log)

◆ setupDebug()

void setupDebug ( )
protectedvirtual

◆ setupExtensions()

uint04 setupExtensions ( const char **& extensions)
protectedvirtual

◆ setupInstance()

void setupInstance ( )
protectedvirtual

◆ setupLayers()

uint04 setupLayers ( const char **& layers)
protectedvirtual

◆ setupModule()

void setupModule ( Module & module)
static

◆ SoftwareRenderedVulkanLib()

String SoftwareRenderedVulkanLib ( )
static

◆ supportsKHRSwapchain()

bool supportsKHRSwapchain ( ) const

◆ supportsTriangleFan()

bool supportsTriangleFan ( ) const

◆ supportsValidation()

bool supportsValidation ( ) const
inline

◆ surfaceType()

const String & surfaceType ( ) const

◆ validationLayers()

const Buffer< String > & validationLayers ( ) const
inline

◆ vkInstance()

VkInstance vkInstance ( ) const
inline

◆ VulkanBackupModule()

Module VulkanBackupModule ( )
static

◆ vulkanLibUsed()

String vulkanLibUsed ( ) const

Member Data Documentation

◆ m_available_extension_info

Buffer<VkExtensionProperties, uint04, ObjectAllocator<true> > m_available_extension_info
protected

◆ m_available_layer_info

Buffer<VkLayerProperties, uint04, ObjectAllocator<true> > m_available_layer_info
protected

◆ m_available_physical_devices

Buffer<VkPhysicalDevice> m_available_physical_devices
protected

◆ m_creation_time

Time m_creation_time
protected

◆ m_debug_callback

VkDebugReportCallbackEXT m_debug_callback
protected

◆ m_extensions

Buffer<String> m_extensions
protected

◆ m_is_init

bool m_is_init = false
protected

◆ m_is_software_rendered

bool m_is_software_rendered = false
protected

◆ m_log

ProgressInfo* m_log
protected

◆ m_supports_tri_fan

bool m_supports_tri_fan
protected

◆ m_supports_validation

bool m_supports_validation
protected

◆ m_surface_type

String m_surface_type
protected

◆ m_validation_layers

Buffer<String> m_validation_layers
protected

◆ m_vk_instance

VkInstance m_vk_instance
protected

◆ s_instances

Buffer< VulkanInstance * > s_instances
static

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