Struct rutabaga_gfx::RutabagaGrallocFlags
source · 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
source§fn eq(&self, other: &RutabagaGrallocFlags) -> bool
fn eq(&self, other: &RutabagaGrallocFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RutabagaGrallocFlags
impl Eq for RutabagaGrallocFlags
impl StructuralPartialEq for RutabagaGrallocFlags
Auto Trait Implementations§
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