pub trait QueueFamily:
Debug
+ Any
+ Send
+ Sync {
// Required methods
fn queue_type(&self) -> QueueType;
fn max_queues(&self) -> usize;
fn id(&self) -> QueueFamilyId;
fn supports_sparse_binding(&self) -> bool;
}
Expand description
General information about a queue family, available upon adapter discovery.
Note that a backend can expose multiple queue families with the same properties.
Can be obtained from an adapter through its
queue_families
field.
Required Methods§
Sourcefn queue_type(&self) -> QueueType
fn queue_type(&self) -> QueueType
Returns the type of queues.
Sourcefn max_queues(&self) -> usize
fn max_queues(&self) -> usize
Returns maximum number of queues created from this family.
Sourcefn id(&self) -> QueueFamilyId
fn id(&self) -> QueueFamilyId
Returns the queue family ID.
Sourcefn supports_sparse_binding(&self) -> bool
fn supports_sparse_binding(&self) -> bool
Returns true if the queue family supports sparse binding