OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
We need the ability to re-enumerate devices to handle physical device removing, that requires fresh VkInstance instance, as otherwise Vulkan returns obsolete physical devices list. More...
#include <OgreVulkanDevice.h>
Public Member Functions | |
VulkanInstance (const String &appName, VulkanExternalInstance *externalInstance, PFN_vkDebugReportCallbackEXT debugCallback, RenderSystem *renderSystem) | |
~VulkanInstance () | |
const VulkanPhysicalDevice * | findByName (const String &name) const |
void | initDebugFeatures (PFN_vkDebugReportCallbackEXT callback, void *userdata, bool hasRenderDocApi) |
void | initPhysicalDeviceList () |
Static Public Member Functions | |
static void | enumerateExtensionsAndLayers (VulkanExternalInstance *externalInstance) |
static bool | hasExtension (const char *extension) |
Public Attributes | |
PFN_vkCmdBeginDebugUtilsLabelEXT | CmdBeginDebugUtilsLabelEXT |
PFN_vkCmdEndDebugUtilsLabelEXT | CmdEndDebugUtilsLabelEXT |
PFN_vkCreateDebugReportCallbackEXT | CreateDebugReportCallback |
PFN_vkDestroyDebugReportCallbackEXT | DestroyDebugReportCallback |
VkDebugReportCallbackEXT | mDebugReportCallback |
VkInstance | mVkInstance |
bool | mVkInstanceIsExternal |
FastArray< VulkanPhysicalDevice > | mVulkanPhysicalDevices |
Static Public Attributes | |
static FastArray< const char * > | enabledExtensions |
static FastArray< const char * > | enabledLayers |
static bool | hasValidationLayers |
We need the ability to re-enumerate devices to handle physical device removing, that requires fresh VkInstance instance, as otherwise Vulkan returns obsolete physical devices list.
Ogre::VulkanInstance::VulkanInstance | ( | const String & | appName, |
VulkanExternalInstance * | externalInstance, | ||
PFN_vkDebugReportCallbackEXT | debugCallback, | ||
RenderSystem * | renderSystem | ||
) |
Ogre::VulkanInstance::~VulkanInstance | ( | ) |
|
static |
const VulkanPhysicalDevice* Ogre::VulkanInstance::findByName | ( | const String & | name | ) | const |
|
static |
void Ogre::VulkanInstance::initDebugFeatures | ( | PFN_vkDebugReportCallbackEXT | callback, |
void * | userdata, | ||
bool | hasRenderDocApi | ||
) |
void Ogre::VulkanInstance::initPhysicalDeviceList | ( | ) |
PFN_vkCmdBeginDebugUtilsLabelEXT Ogre::VulkanInstance::CmdBeginDebugUtilsLabelEXT |
PFN_vkCmdEndDebugUtilsLabelEXT Ogre::VulkanInstance::CmdEndDebugUtilsLabelEXT |
PFN_vkCreateDebugReportCallbackEXT Ogre::VulkanInstance::CreateDebugReportCallback |
PFN_vkDestroyDebugReportCallbackEXT Ogre::VulkanInstance::DestroyDebugReportCallback |
|
static |
|
static |
|
static |
VkDebugReportCallbackEXT Ogre::VulkanInstance::mDebugReportCallback |
VkInstance Ogre::VulkanInstance::mVkInstance |
bool Ogre::VulkanInstance::mVkInstanceIsExternal |
FastArray<VulkanPhysicalDevice> Ogre::VulkanInstance::mVulkanPhysicalDevices |