gfx_hal::queue::family

Trait QueueFamily

Source
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§

Source

fn queue_type(&self) -> QueueType

Returns the type of queues.

Source

fn max_queues(&self) -> usize

Returns maximum number of queues created from this family.

Source

fn id(&self) -> QueueFamilyId

Returns the queue family ID.

Source

fn supports_sparse_binding(&self) -> bool

Returns true if the queue family supports sparse binding

Implementors§