Enum
VkQueueGlobalPriority
Values specifying a system-wide queue priority
Possible values of
VkDeviceQueueGlobalPriorityCreateInfo::globalPriority,
specifying a system-wide priority level are:
typedef enum VkQueueGlobalPriority {
VK_QUEUE_GLOBAL_PRIORITY_LOW = 128,
VK_QUEUE_GLOBAL_PRIORITY_MEDIUM = 256,
VK_QUEUE_GLOBAL_PRIORITY_HIGH = 512,
VK_QUEUE_GLOBAL_PRIORITY_REALTIME = 1024,
// Provided by extensions
VK_QUEUE_GLOBAL_PRIORITY_LOW_EXT = VK_QUEUE_GLOBAL_PRIORITY_LOW,
VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT = VK_QUEUE_GLOBAL_PRIORITY_MEDIUM,
VK_QUEUE_GLOBAL_PRIORITY_HIGH_EXT = VK_QUEUE_GLOBAL_PRIORITY_HIGH,
VK_QUEUE_GLOBAL_PRIORITY_REALTIME_EXT = VK_QUEUE_GLOBAL_PRIORITY_REALTIME,
VK_QUEUE_GLOBAL_PRIORITY_LOW_KHR = VK_QUEUE_GLOBAL_PRIORITY_LOW,
VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR = VK_QUEUE_GLOBAL_PRIORITY_MEDIUM,
VK_QUEUE_GLOBAL_PRIORITY_HIGH_KHR = VK_QUEUE_GLOBAL_PRIORITY_HIGH,
VK_QUEUE_GLOBAL_PRIORITY_REALTIME_KHR = VK_QUEUE_GLOBAL_PRIORITY_REALTIME,
} VkQueueGlobalPriority;
pub struct QueueGlobalPriority(u32);
impl QueueGlobalPriority {
pub const LOW: Self = 128;
pub const MEDIUM: Self = 256;
pub const HIGH: Self = 512;
pub const REALTIME: Self = 1024;
pub const LOW_EXT: Self = Self::LOW;
pub const MEDIUM_EXT: Self = Self::MEDIUM;
pub const HIGH_EXT: Self = Self::HIGH;
pub const REALTIME_EXT: Self = Self::REALTIME;
pub const LOW_KHR: Self = Self::LOW;
pub const MEDIUM_KHR: Self = Self::MEDIUM;
pub const HIGH_KHR: Self = Self::HIGH;
pub const REALTIME_KHR: Self = Self::REALTIME;
}
#define VkQueueGlobalPriorityKHR VkQueueGlobalPriority
const QueueGlobalPriorityKHR: _ = vk::QueueGlobalPriority;
#define VkQueueGlobalPriorityEXT VkQueueGlobalPriority
const QueueGlobalPriorityEXT: _ = vk::QueueGlobalPriority;
Priority values are sorted in ascending order. A comparison operation on the enum values can be used to determine the priority order.
VK_QUEUE_GLOBAL_PRIORITY_LOWis below the system default. Useful for non-interactive tasks.VK_QUEUE_GLOBAL_PRIORITY_MEDIUMis the system default priority.VK_QUEUE_GLOBAL_PRIORITY_HIGHis above the system default.VK_QUEUE_GLOBAL_PRIORITY_REALTIMEis the highest priority. Useful for critical tasks.
Parent
VK_VERSION_1_4Type
Enum