ezEngine Release 26.3
Loading...
Searching...
No Matches
ezVulkanInitInterface Class Referenceabstract

Interface for customizing Vulkan instance and device creation. More...

#include <ezVulkanInitInterface.h>

Public Member Functions

virtual vk::Instance CreateInstance (const vk::InstanceCreateInfo &createInfo)=0
 Creates the Vulkan instance using platform-specific requirements. Returns nullptr if the instance should be created normally by the renderer.
 
virtual vk::PhysicalDevice GetPhysicalDevice (vk::Instance instance)=0
 Returns the physical device to use. Returns nullptr if the renderer should select the physical device normally.
 
virtual vk::Device CreateDevice (const vk::DeviceCreateInfo &createInfo)=0
 Creates the Vulkan device using platform-specific requirements. Returns nullptr if the device should be created normally by the renderer.
 
virtual void ExtendInstanceExtensions (const ezDynamicArray< vk::ExtensionProperties > &availableExtensions, ezDynamicArray< ezString > &ref_extensions)
 Extends the instance extensions required. Used by XR_KHR_vulkan_enable (v1) to add required instance extensions.
 
virtual void ExtendDeviceExtensions (const ezDynamicArray< vk::ExtensionProperties > &availableExtensions, ezDynamicArray< ezString > &ref_extensions)
 Extends the device extensions required. Used by XR_KHR_vulkan_enable (v1) to add required device extensions.
 

Detailed Description

Interface for customizing Vulkan instance and device creation.

This interface is used by systems like OpenXR that need to control how the Vulkan instance and device are created to ensure the correct extensions and physical device are used.


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