Skip to content

KDGpu::VulkanGraphicsApi

Module: Public API

VulkanGraphicsApi.

#include <vulkan_graphics_api.h>

Inherits from KDGpu::GraphicsApi

Public Functions

Name
VulkanGraphicsApi()
~VulkanGraphicsApi()
virtual const char * apiName() const
Instance createInstanceFromExistingVkInstance(VkInstance vkInstance)
Surface createSurfaceFromExistingVkSurface(const Handle< Instance_t > & instanceH, VkSurfaceKHR vkSurface)
Adapter createAdapterFromExistingVkPhysicalDevice(const Handle< Instance_t > & instanceH, VkPhysicalDevice vkPhysicalDevice)
Queue createQueueFromExistingVkQueue(VkQueue vkQueue, const QueueFlags queueFlags)
Device createDeviceFromExistingVkDevice(Adapter * adapter, VkDevice vkDevice, std::vector< Queue > && queues)
VkImage vkImageFromTexture(const Handle< Texture_t > textureH) const
Texture createTextureFromExistingVkImage(const Handle< Device_t > & deviceHandle, const TextureOptions & options, VkImage vkImage)
std::string getMemoryStats(const Handle< Device_t > & device) const
void addValidationMessageToIgnore(const std::string & messageToIgnore)
const std::vector< std::string > & validationMessagesToIgnore()

Additional inherited members

Public Types inherited from KDGpu::GraphicsApi

Name
enum class uint8_t Api { Vulkan, UserDefined}

Public Functions inherited from KDGpu::GraphicsApi

Name
virtual ~GraphicsApi()
Api api() const
Instance createInstance(const InstanceOptions & options =InstanceOptions())
Create an Instance object given the InstanceOptionsoptions.
ResourceManager * resourceManager()
Returns the ResourceManager instance for the GraphicsApi.
const ResourceManager * resourceManager() const

Protected Functions inherited from KDGpu::GraphicsApi

Name
GraphicsApi(Api api)

Protected Attributes inherited from KDGpu::GraphicsApi

Name
ResourceManager * m_resourceManager
Api m_api

Public Functions Documentation

function VulkanGraphicsApi

1
VulkanGraphicsApi()

function ~VulkanGraphicsApi

1
~VulkanGraphicsApi()

function apiName

1
virtual const char * apiName() const

Reimplements: KDGpu::GraphicsApi::apiName

function createInstanceFromExistingVkInstance

1
2
3
Instance createInstanceFromExistingVkInstance(
    VkInstance vkInstance
)

function createSurfaceFromExistingVkSurface

1
2
3
4
Surface createSurfaceFromExistingVkSurface(
    const Handle< Instance_t > & instanceH,
    VkSurfaceKHR vkSurface
)

function createAdapterFromExistingVkPhysicalDevice

1
2
3
4
Adapter createAdapterFromExistingVkPhysicalDevice(
    const Handle< Instance_t > & instanceH,
    VkPhysicalDevice vkPhysicalDevice
)

function createQueueFromExistingVkQueue

1
2
3
4
Queue createQueueFromExistingVkQueue(
    VkQueue vkQueue,
    const QueueFlags queueFlags
)

function createDeviceFromExistingVkDevice

1
2
3
4
5
Device createDeviceFromExistingVkDevice(
    Adapter * adapter,
    VkDevice vkDevice,
    std::vector< Queue > && queues
)

function vkImageFromTexture

1
2
3
VkImage vkImageFromTexture(
    const Handle< Texture_t > textureH
) const

function createTextureFromExistingVkImage

1
2
3
4
5
Texture createTextureFromExistingVkImage(
    const Handle< Device_t > & deviceHandle,
    const TextureOptions & options,
    VkImage vkImage
)

function getMemoryStats

1
2
3
std::string getMemoryStats(
    const Handle< Device_t > & device
) const

function addValidationMessageToIgnore

1
2
3
static void addValidationMessageToIgnore(
    const std::string & messageToIgnore
)

function validationMessagesToIgnore

1
static const std::vector< std::string > & validationMessagesToIgnore()

Updated on 2024-11-21 at 00:08:26 +0000