Skip to content

KDGpu::VulkanAdapter

Module: Vulkan

VulkanAdapter.

#include <vulkan_adapter.h>

Public Functions

Name
VulkanAdapter(VkPhysicalDevice _physicalDevice, VulkanResourceManager * _vulkanResourceManager, const Handle< Instance_t > & _instanceHandle)
std::vector< Extension > extensions() const
AdapterProperties queryAdapterProperties()
AdapterFeatures queryAdapterFeatures()
AdapterSwapchainProperties querySwapchainProperties(const Handle< Surface_t > & surfaceHandle)
std::vector< AdapterQueueType > queryQueueTypes()
bool supportsPresentation(const Handle< Surface_t > surfaceHandle, uint32_t queueTypeIndex)
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
std::vector< Extension > extensions() const

function queryAdapterProperties

1
AdapterProperties queryAdapterProperties()

function queryAdapterFeatures

1
AdapterFeatures queryAdapterFeatures()

function querySwapchainProperties

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

function queryQueueTypes

1
std::vector< AdapterQueueType > queryQueueTypes()

function supportsPresentation

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

function formatProperties

1
2
3
FormatProperties formatProperties(
    Format format
) const

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-12-22 at 00:01:23 +0000