Struct blaze_rs::core::QueueProperties
source · #[non_exhaustive]pub struct QueueProperties {
pub props: CommandQueueProperties,
pub size: Option<NonZeroU32>,
}
Available on crate feature
cl2
only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.props: CommandQueueProperties
§size: Option<NonZeroU32>
Specifies the size of the device queue in bytes.
This can only be specified if on device is set in props
. This must be a value less or equal to the max size.
For best performance, this should be less or equal to the preferred size.
If size
is not specified, the device queue is created with the preferred size as the size of the queue.
Implementations§
source§impl QueueProperties
impl QueueProperties
pub fn new( props: CommandQueueProperties, size: impl Into<Option<NonZeroU32>> ) -> Self
pub const fn const_new( props: CommandQueueProperties, size: Option<NonZeroU32> ) -> Self
pub fn to_bits( self ) -> Either<[cl_queue_properties; 5], [cl_queue_properties; 3]>
pub fn from_bits(bits: &[cl_queue_properties]) -> Self
Trait Implementations§
source§impl Clone for QueueProperties
impl Clone for QueueProperties
source§fn clone(&self) -> QueueProperties
fn clone(&self) -> QueueProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QueueProperties
impl Debug for QueueProperties
source§impl Default for QueueProperties
impl Default for QueueProperties
source§fn default() -> QueueProperties
fn default() -> QueueProperties
Returns the “default value” for a type. Read more
source§impl From<CommandQueueProperties> for QueueProperties
impl From<CommandQueueProperties> for QueueProperties
source§fn from(props: CommandQueueProperties) -> Self
fn from(props: CommandQueueProperties) -> Self
Converts to this type from the input type.
source§impl Hash for QueueProperties
impl Hash for QueueProperties
source§impl PartialEq<QueueProperties> for QueueProperties
impl PartialEq<QueueProperties> for QueueProperties
source§fn eq(&self, other: &QueueProperties) -> bool
fn eq(&self, other: &QueueProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for QueueProperties
impl Eq for QueueProperties
impl StructuralEq for QueueProperties
impl StructuralPartialEq for QueueProperties
Auto Trait Implementations§
impl RefUnwindSafe for QueueProperties
impl Send for QueueProperties
impl Sync for QueueProperties
impl Unpin for QueueProperties
impl UnwindSafe for QueueProperties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more