Skip to content

KDGpu::VulkanAdapter

Module: Vulkan

VulkanAdapter.

#include <vulkan_adapter.h>

Inherits from KDGpu::ApiAdapter

Public Functions

Name
VulkanAdapter(VkPhysicalDevice _physicalDevice, VulkanResourceManager * _vulkanResourceManager, const Handle< Instance_t > & _instanceHandle)
virtual std::vector< Extension > extensions() const
virtual AdapterProperties queryAdapterProperties()
virtual AdapterFeatures queryAdapterFeatures()
virtual AdapterSwapchainProperties querySwapchainProperties(const Handle< Surface_t > & surfaceHandle)
virtual std::vector< AdapterQueueType > queryQueueTypes()
virtual bool supportsPresentation(const Handle< Surface_t > surfaceHandle, uint32_t queueTypeIndex)
virtual FormatProperties formatProperties(Format format) const

Public Attributes

Name
VkPhysicalDevice physicalDevice
VulkanResourceManager * vulkanResourceManager
Handle< Instance_t > instanceHandle
std::vector< AdapterQueueType > queueTypes
bool supportsSynchronization2

Public Functions Documentation

function VulkanAdapter

1
2
3
4
5
explicit VulkanAdapter(
    VkPhysicalDevice _physicalDevice,
    VulkanResourceManager * _vulkanResourceManager,
    const Handle< Instance_t > & _instanceHandle
)

function extensions

1
virtual std::vector< Extension > extensions() const

Reimplements: KDGpu::ApiAdapter::extensions

function queryAdapterProperties

1
virtual AdapterProperties queryAdapterProperties()

Reimplements: KDGpu::ApiAdapter::queryAdapterProperties

function queryAdapterFeatures

1
virtual AdapterFeatures queryAdapterFeatures()

Reimplements: KDGpu::ApiAdapter::queryAdapterFeatures

function querySwapchainProperties

1
2
3
virtual AdapterSwapchainProperties querySwapchainProperties(
    const Handle< Surface_t > & surfaceHandle
)

Reimplements: KDGpu::ApiAdapter::querySwapchainProperties

function queryQueueTypes

1
virtual std::vector< AdapterQueueType > queryQueueTypes()

Reimplements: KDGpu::ApiAdapter::queryQueueTypes

function supportsPresentation

1
2
3
4
virtual bool supportsPresentation(
    const Handle< Surface_t > surfaceHandle,
    uint32_t queueTypeIndex
)

Reimplements: KDGpu::ApiAdapter::supportsPresentation

function formatProperties

1
2
3
virtual FormatProperties formatProperties(
    Format format
) const

Reimplements: KDGpu::ApiAdapter::formatProperties

Public Attributes Documentation

variable physicalDevice

1
VkPhysicalDevice physicalDevice { VK_NULL_HANDLE };

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable instanceHandle

1
Handle< Instance_t > instanceHandle;

variable queueTypes

1
std::vector< AdapterQueueType > queueTypes;

variable supportsSynchronization2

1
bool supportsSynchronization2 { false };

Updated on 2024-11-25 at 00:15:04 +0000