pub struct MemAccess {
pub read: bool,
pub write: bool,
}Fields§
§read: bool§write: boolImplementations§
source§impl MemAccess
impl MemAccess
pub const NONE: Self = _
sourcepub const READ_WRITE: Self = _
pub const READ_WRITE: Self = _
This flag specifies that the memory object will be read and written by a kernel. This is the default.
sourcepub const READ_ONLY: Self = _
pub const READ_ONLY: Self = _
This flag specifies that the memory object is a read-only memory object when used inside a kernel. Writing to a buffer or image object created with read only inside a kernel is undefined.
sourcepub const WRITE_ONLY: Self = _
pub const WRITE_ONLY: Self = _
This flags specifies that the memory object will be written but not read by a kernel. Reading from a buffer or image object created with write only inside a kernel is undefined.
pub const fn new(read: bool, write: bool) -> Self
pub const fn unwrap(self) -> (bool, bool)
pub const fn from_bits(flags: cl_mem_flags) -> Self
pub const fn from_bits_host(flags: cl_mem_flags) -> Self
Available on crate feature
cl1_2 only.pub const fn from_bits_map(flags: cl_map_flags) -> Self
pub const fn to_bits(self) -> cl_mem_flags
pub const fn to_bits_host(self) -> cl_mem_flags
Available on crate feature
cl1_2 only.pub const fn to_bits_map(self) -> cl_map_flags
Trait Implementations§
source§impl PartialEq<MemAccess> for MemAccess
impl PartialEq<MemAccess> for MemAccess
impl Copy for MemAccess
impl Eq for MemAccess
impl StructuralEq for MemAccess
impl StructuralPartialEq for MemAccess
Auto Trait Implementations§
impl RefUnwindSafe for MemAccess
impl Send for MemAccess
impl Sync for MemAccess
impl Unpin for MemAccess
impl UnwindSafe for MemAccess
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