18#ifndef INCLUDED_RENDERER_BACKEND_VULKAN_DEVICESELECTION
19#define INCLUDED_RENDERER_BACKEND_VULKAN_DEVICESELECTION
23#include <glad/vulkan.h>
24#include <js/TypeDecls.h>
29namespace Script {
class Request; }
45 uint32_t
index = std::numeric_limits<uint32_t>::max();
46 VkPhysicalDevice
device = VK_NULL_HANDLE;
73 VkInstance instance, VkSurfaceKHR surface,
74 const std::vector<const char*>& requiredDeviceExtensions);
94 const VkSurfaceFormatKHR& surfaceFormat);
void ReportAvailablePhysicalDevice(const SAvailablePhysicalDevice &device, const Script::Request &rq, JS::HandleValue settings)
Report all desired information about the available physical device.
Definition: DeviceSelection.cpp:338
bool ComparePhysicalDevices(const SAvailablePhysicalDevice &device1, const SAvailablePhysicalDevice &device2)
Definition: DeviceSelection.cpp:318
std::vector< SAvailablePhysicalDevice > GetAvailablePhysicalDevices(VkInstance instance, VkSurfaceKHR surface, const std::vector< const char * > &requiredDeviceExtensions)
Definition: DeviceSelection.cpp:277
bool IsPhysicalDeviceUnsupported(const SAvailablePhysicalDevice &device)
Definition: DeviceSelection.cpp:300
bool IsSurfaceFormatSupported(const VkSurfaceFormatKHR &surfaceFormat)
Definition: DeviceSelection.cpp:329
Backend
Definition: Backend.h:28
Definition: Canvas2D.h:30
Abstraction around a SpiderMonkey JSContext.
Definition: DapInterface.h:32
Structure to store all information that might be useful on device selection.
Definition: DeviceSelection.h:44
bool hasOutputToSurfaceSupport
Definition: DeviceSelection.h:54
std::vector< VkQueueFamilyProperties > queueFamilies
Definition: DeviceSelection.h:52
VkPhysicalDeviceProperties properties
Definition: DeviceSelection.h:47
VkDeviceSize deviceTotalMemory
Definition: DeviceSelection.h:57
VkPhysicalDeviceFeatures features
Definition: DeviceSelection.h:50
std::vector< VkSurfaceFormatKHR > surfaceFormats
Definition: DeviceSelection.h:61
std::vector< VkPresentModeKHR > presentModes
Definition: DeviceSelection.h:62
VkPhysicalDeviceDescriptorIndexingPropertiesEXT descriptorIndexingProperties
Definition: DeviceSelection.h:48
VkPhysicalDeviceMemoryProperties memoryProperties
Definition: DeviceSelection.h:49
VkPhysicalDeviceDescriptorIndexingFeaturesEXT descriptorIndexingFeatures
Definition: DeviceSelection.h:51
bool hasRequiredExtensions
Definition: DeviceSelection.h:53
VkDeviceSize hostTotalMemory
Definition: DeviceSelection.h:58
size_t presentQueueFamilyIndex
Definition: DeviceSelection.h:56
VkPhysicalDevice device
Definition: DeviceSelection.h:46
uint32_t index
Definition: DeviceSelection.h:45
size_t graphicsQueueFamilyIndex
Definition: DeviceSelection.h:55
std::vector< std::string > extensions
Definition: DeviceSelection.h:59
VkSurfaceCapabilitiesKHR surfaceCapabilities
Definition: DeviceSelection.h:60