pub enum MapFlags {
Access(MemAccess),
WriteInvalidate,
}
Expand description
Mapping flags
Variants§
Access(MemAccess)
WriteInvalidate
Available on crate feature
cl1_2
only.This flag specifies that the region being mapped in the memory object is being mapped for writing. The contents of the region being mapped are to be discarded. This is typically the case when the region being mapped is overwritten by the host.
Implementations§
source§impl MapFlags
impl MapFlags
pub const fn from_bits(bits: cl_map_flags) -> Self
pub const fn to_bits(self) -> cl_map_flags
Trait Implementations§
source§impl PartialEq<MapFlags> for MapFlags
impl PartialEq<MapFlags> for MapFlags
impl Copy for MapFlags
impl Eq for MapFlags
impl StructuralEq for MapFlags
impl StructuralPartialEq for MapFlags
Auto Trait Implementations§
impl RefUnwindSafe for MapFlags
impl Send for MapFlags
impl Sync for MapFlags
impl Unpin for MapFlags
impl UnwindSafe for MapFlags
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