load vulkan queue function
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
gnBool metalIsExtensionSupported(gnExtension extension) {
|
||||
if (extension == GN_EXT_SYNCHRONIZATION) return gnTrue;
|
||||
if (extension == GN_EXT_QUEUES) return gnTrue;
|
||||
if (extension == GN_EXT_QUEUES) return gnFalse;
|
||||
return gnFalse;
|
||||
}
|
||||
|
@@ -3,11 +3,13 @@
|
||||
#include "loader/src/gryphn_device_functions.h"
|
||||
#include "loader/src/gryphn_command_functions.h"
|
||||
#include "extensions/synchronization/loader/sync_functions.h"
|
||||
#include "extensions/queues/queues_functions.h"
|
||||
#include "core/gryphn_extensions.h"
|
||||
|
||||
gnInstanceFunctions loadVulkanInstanceFunctions();
|
||||
gnDeviceFunctions loadVulkanDeviceFunctions();
|
||||
gnCommandFunctions loadVulkanCommandFunctions();
|
||||
gnSyncExtFunctions loadVulkanSyncFunctions();
|
||||
gnQueueExtFunctions loadVulkanQueueFunctions();
|
||||
|
||||
gnBool vulkanIsExtensionSupported(gnExtension extension);
|
||||
|
8
projects/apis/vulkan/loader/vulkan_queue_loader.c
Normal file
8
projects/apis/vulkan/loader/vulkan_queue_loader.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "vulkan_loader.h"
|
||||
#include "extensions/queues/vulkan_device_queues.h"
|
||||
|
||||
gnQueueExtFunctions loadVulkanQueueFunctions() {
|
||||
return (gnQueueExtFunctions) {
|
||||
._gnGetPhysicalDeviceQueueProperties = vulkanPhysicalDeviceQueueProperties
|
||||
};
|
||||
}
|
@@ -1,5 +1,4 @@
|
||||
#include <output_device/vulkan_physical_device.h>
|
||||
#include "extensions/queues/gryphn_physcial_device_queue.h"
|
||||
#include "vulkan_device_queues.h"
|
||||
|
||||
gnReturnCode vulkanPhysicalDeviceQueueProperties(gnPhysicalOutputDeviceHandle device, uint32_t queueFamilyCount, gnQueueFamilyProperties* queues) {
|
||||
vkGetPhysicalDeviceQueueFamilyProperties(device->physicalDevice->device, &queueFamilyCount, NULL);
|
||||
|
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <output_device/vulkan_physical_device.h>
|
||||
#include <extensions/queues/gryphn_physcial_device_queue.h>
|
||||
|
||||
gnReturnCode vulkanPhysicalDeviceQueueProperties(gnPhysicalOutputDeviceHandle device, uint32_t queueFamilyCount, gnQueueFamilyProperties* queues);
|
Reference in New Issue
Block a user