Struct rutabaga_gfx::VirglRendererFlags
source · pub struct VirglRendererFlags(u32);
Expand description
virglrenderer flag struct.
Tuple Fields§
§0: u32
Implementations§
source§impl VirglRendererFlags
impl VirglRendererFlags
sourcepub fn new() -> VirglRendererFlags
pub fn new() -> VirglRendererFlags
Create new virglrenderer flags.
fn set_flag(self, bitmask: u32, set: bool) -> VirglRendererFlags
sourcepub fn use_virgl(self, v: bool) -> VirglRendererFlags
pub fn use_virgl(self, v: bool) -> VirglRendererFlags
Enable virgl support
sourcepub fn use_venus(self, v: bool) -> VirglRendererFlags
pub fn use_venus(self, v: bool) -> VirglRendererFlags
Enable venus support
sourcepub fn use_drm(self, v: bool) -> VirglRendererFlags
pub fn use_drm(self, v: bool) -> VirglRendererFlags
Enable drm native context support
sourcepub fn use_egl(self, v: bool) -> VirglRendererFlags
pub fn use_egl(self, v: bool) -> VirglRendererFlags
Use EGL for context creation.
sourcepub fn use_thread_sync(self, v: bool) -> VirglRendererFlags
pub fn use_thread_sync(self, v: bool) -> VirglRendererFlags
Use a dedicated thread for fence synchronization.
sourcepub fn use_glx(self, v: bool) -> VirglRendererFlags
pub fn use_glx(self, v: bool) -> VirglRendererFlags
Use GLX for context creation.
sourcepub fn use_surfaceless(self, v: bool) -> VirglRendererFlags
pub fn use_surfaceless(self, v: bool) -> VirglRendererFlags
No surfaces required when creating context.
sourcepub fn use_gles(self, v: bool) -> VirglRendererFlags
pub fn use_gles(self, v: bool) -> VirglRendererFlags
Use GLES drivers.
sourcepub fn use_external_blob(self, v: bool) -> VirglRendererFlags
pub fn use_external_blob(self, v: bool) -> VirglRendererFlags
Use external memory when creating blob resources.
sourcepub fn use_async_fence_cb(self, v: bool) -> VirglRendererFlags
pub fn use_async_fence_cb(self, v: bool) -> VirglRendererFlags
Retire fence directly from sync thread.
pub fn use_render_server(self, v: bool) -> VirglRendererFlags
Trait Implementations§
source§impl Clone for VirglRendererFlags
impl Clone for VirglRendererFlags
source§fn clone(&self) -> VirglRendererFlags
fn clone(&self) -> VirglRendererFlags
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 VirglRendererFlags
impl Default for VirglRendererFlags
source§fn default() -> VirglRendererFlags
fn default() -> VirglRendererFlags
Returns the “default value” for a type. Read more
source§impl From<VirglRendererFlags> for i32
impl From<VirglRendererFlags> for i32
source§fn from(flags: VirglRendererFlags) -> i32
fn from(flags: VirglRendererFlags) -> i32
Converts to this type from the input type.
source§impl From<VirglRendererFlags> for u32
impl From<VirglRendererFlags> for u32
source§fn from(flags: VirglRendererFlags) -> u32
fn from(flags: VirglRendererFlags) -> u32
Converts to this type from the input type.
impl Copy for VirglRendererFlags
Auto Trait Implementations§
impl RefUnwindSafe for VirglRendererFlags
impl Send for VirglRendererFlags
impl Sync for VirglRendererFlags
impl Unpin for VirglRendererFlags
impl UnwindSafe for VirglRendererFlags
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