mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-29 07:02:18 +00:00
22 lines
637 B
C++
22 lines
637 B
C++
#pragma once
|
|
|
|
#include "vulkaninstance.h"
|
|
|
|
class VulkanSurface;
|
|
|
|
class VulkanCompatibleDevice
|
|
{
|
|
public:
|
|
VulkanPhysicalDevice* Device = nullptr;
|
|
|
|
int GraphicsFamily = -1;
|
|
int PresentFamily = -1;
|
|
|
|
bool GraphicsTimeQueries = false;
|
|
|
|
std::vector<std::string> EnabledDeviceExtensions;
|
|
VulkanDeviceFeatures EnabledFeatures;
|
|
|
|
static std::vector<VulkanCompatibleDevice> FindDevices(const std::shared_ptr<VulkanInstance>& instance, const std::shared_ptr<VulkanSurface>& surface);
|
|
static VulkanCompatibleDevice SelectDevice(const std::shared_ptr<VulkanInstance>& instance, const std::shared_ptr<VulkanSurface>& surface, int vk_device);
|
|
};
|