Struct vulkano::instance::QueueFamily
source · pub struct QueueFamily<'a> { /* private fields */ }
Expand description
Represents a queue family in a physical device.
A queue family is group of one or multiple queues. All queues of one family have the same characteristics.
Implementations
sourceimpl<'a> QueueFamily<'a>
impl<'a> QueueFamily<'a>
sourcepub fn physical_device(&self) -> PhysicalDevice<'a>
pub fn physical_device(&self) -> PhysicalDevice<'a>
Returns the physical device associated to this queue family.
sourcepub fn id(&self) -> u32
pub fn id(&self) -> u32
Returns the identifier of this queue family within the physical device.
sourcepub fn queues_count(&self) -> usize
pub fn queues_count(&self) -> usize
Returns the number of queues that belong to this family.
Guaranteed to be at least 1 (or else that family wouldn’t exist).
sourcepub fn timestamp_valid_bits(&self) -> Option<u32>
pub fn timestamp_valid_bits(&self) -> Option<u32>
If timestamps are supported, returns the number of bits supported by timestamp operations. The returned value will be in the range 36..64. If timestamps are not supported, returns None.
sourcepub fn min_image_transfer_granularity(&self) -> [u32; 3]
pub fn min_image_transfer_granularity(&self) -> [u32; 3]
Returns the minimum granularity supported for image transfers in terms
of [width, height, depth]
sourcepub fn supports_graphics(&self) -> bool
pub fn supports_graphics(&self) -> bool
Returns true if queues of this family can execute graphics operations.
sourcepub fn supports_compute(&self) -> bool
pub fn supports_compute(&self) -> bool
Returns true if queues of this family can execute compute operations.
sourcepub fn supports_transfers(&self) -> bool
pub fn supports_transfers(&self) -> bool
Returns true if queues of this family can execute transfer operations.
Note: Queues that support graphics or compute operations also always support transfer operations. As of writing this, this function will always return true. The purpose of this function is to be future-proofed in case queues that don’t support transfer operations are ever added to Vulkan.
sourcepub fn supports_sparse_binding(&self) -> bool
pub fn supports_sparse_binding(&self) -> bool
Returns true if queues of this family can execute sparse resources binding operations.
Trait Implementations
sourceimpl<'a> Clone for QueueFamily<'a>
impl<'a> Clone for QueueFamily<'a>
sourcefn clone(&self) -> QueueFamily<'a>
fn clone(&self) -> QueueFamily<'a>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more