pub struct RutabagaGrallocFlags(pub u32);
Expand description
Usage flags for constructing a buffer object.
Tuple Fields§
§0: u32
Implementations§
Source§impl RutabagaGrallocFlags
impl RutabagaGrallocFlags
Sourcepub fn empty() -> RutabagaGrallocFlags
pub fn empty() -> RutabagaGrallocFlags
Returns empty set of flags.
Sourcepub fn new(raw: u32) -> RutabagaGrallocFlags
pub fn new(raw: u32) -> RutabagaGrallocFlags
Returns the given set of raw RUTABAGA_GRALLOC
flags wrapped in a RutabagaGrallocFlags
struct.
Sourcepub fn use_scanout(self, e: bool) -> RutabagaGrallocFlags
pub fn use_scanout(self, e: bool) -> RutabagaGrallocFlags
Sets the scanout flag’s presence.
Sourcepub fn use_rendering(self, e: bool) -> RutabagaGrallocFlags
pub fn use_rendering(self, e: bool) -> RutabagaGrallocFlags
Sets the rendering flag’s presence.
Sourcepub fn use_linear(self, e: bool) -> RutabagaGrallocFlags
pub fn use_linear(self, e: bool) -> RutabagaGrallocFlags
Sets the linear flag’s presence.
Sourcepub fn use_sw_write(self, e: bool) -> RutabagaGrallocFlags
pub fn use_sw_write(self, e: bool) -> RutabagaGrallocFlags
Sets the SW write flag’s presence.
Sourcepub fn use_sw_read(self, e: bool) -> RutabagaGrallocFlags
pub fn use_sw_read(self, e: bool) -> RutabagaGrallocFlags
Sets the SW read flag’s presence.
Sourcepub fn uses_texturing(self) -> bool
pub fn uses_texturing(self) -> bool
Returns true if the texturing flag is set.
Sourcepub fn uses_rendering(self) -> bool
pub fn uses_rendering(self) -> bool
Returns true if the rendering flag is set.
Sourcepub fn host_visible(self) -> bool
pub fn host_visible(self) -> bool
Returns true if the memory will accessed by the CPU or an IP block that prefers host visible allocations (i.e, camera).
Sourcepub fn host_cached(self) -> bool
pub fn host_cached(self) -> bool
Returns true if the memory will read by the CPU or an IP block that prefers cached allocations (i.e, camera).
Trait Implementations§
Source§impl Clone for RutabagaGrallocFlags
impl Clone for RutabagaGrallocFlags
Source§fn clone(&self) -> RutabagaGrallocFlags
fn clone(&self) -> RutabagaGrallocFlags
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 Default for RutabagaGrallocFlags
impl Default for RutabagaGrallocFlags
Source§fn default() -> RutabagaGrallocFlags
fn default() -> RutabagaGrallocFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for RutabagaGrallocFlags
impl PartialEq for RutabagaGrallocFlags
impl Copy for RutabagaGrallocFlags
impl Eq for RutabagaGrallocFlags
impl StructuralPartialEq for RutabagaGrallocFlags
Auto Trait Implementations§
impl Freeze for RutabagaGrallocFlags
impl RefUnwindSafe for RutabagaGrallocFlags
impl Send for RutabagaGrallocFlags
impl Sync for RutabagaGrallocFlags
impl Unpin for RutabagaGrallocFlags
impl UnwindSafe for RutabagaGrallocFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)