get the queues when GN_EXT_QUEUES is enabled
This commit is contained in:
19
projects/extensions/queues/gryphn_physcial_device_queue.h
Normal file
19
projects/extensions/queues/gryphn_physcial_device_queue.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "gryphn_handles.h"
|
||||
|
||||
typedef enum gnQueueTypeBits {
|
||||
GN_QUEUE_GRAPHICS_BIT = 1 << 0,
|
||||
GN_QUEUE_COMPUTE_BIT = 1 << 1,
|
||||
GN_QUEUE_TRANSFER_BIT = 1 << 2,
|
||||
GN_QUEUE_SPARSE_BINDING_BIT = 1 << 3,
|
||||
GN_QUEUE_PROTECTED_BIT = 1 << 4
|
||||
} gnQueueTypeBits;
|
||||
typedef gnFlags gnQueueTypeFlags;
|
||||
|
||||
typedef struct gnQueueFamilyProperties {
|
||||
uint32_t queueCount;
|
||||
gnQueueTypeFlags queueTypeFlags;
|
||||
} gnQueueFamilyProperties;
|
||||
|
||||
gnReturnCode gnGetPhysicalDeviceQueueProperties(gnPhysicalOutputDeviceHandle device, uint32_t queueCount, gnQueueFamilyProperties* queues);
|
Reference in New Issue
Block a user