Trait gfx_hal::queue::family::QueueFamily
source · pub trait QueueFamily: Debug + Any + Send + Sync {
fn queue_type(&self) -> QueueType;
fn max_queues(&self) -> usize;
fn id(&self) -> QueueFamilyId;
fn supports_graphics(&self) -> bool { ... }
fn supports_compute(&self) -> bool { ... }
fn supports_transfer(&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.
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.
Provided Methods
sourcefn supports_graphics(&self) -> bool
fn supports_graphics(&self) -> bool
Returns true if the queue supports graphics operations.
sourcefn supports_compute(&self) -> bool
fn supports_compute(&self) -> bool
Returns true if the queue supports compute operations.
sourcefn supports_transfer(&self) -> bool
fn supports_transfer(&self) -> bool
Returns true if the queue supports transfer operations.