pub struct DirectGpuFrameBatch { /* private fields */ }Expand description
Complete direct-GPU frame payload targeting GLES 3.0 EGLSurface or Metal CAMetalDrawable with zero CPU framebuffer mirror.
Implementations§
Source§impl DirectGpuFrameBatch
Zero-copy borrowed atlas accessors for DirectGpuFrameBatch.
impl DirectGpuFrameBatch
Zero-copy borrowed atlas accessors for DirectGpuFrameBatch.
Sourcepub fn glyph_r8_atlas_ref(&self) -> Option<&DirectGpuAtlasUpload>
pub fn glyph_r8_atlas_ref(&self) -> Option<&DirectGpuAtlasUpload>
Returns a borrowed reference to the optional R8 monochrome glyph atlas upload without cloning.
§Returns
Option<&DirectGpuAtlasUpload>- Borrowed R8 glyph atlas upload when present.
Sourcepub fn image_rgba8_atlas_ref(&self) -> Option<&DirectGpuAtlasUpload>
pub fn image_rgba8_atlas_ref(&self) -> Option<&DirectGpuAtlasUpload>
Returns a borrowed reference to the optional RGBA8 image atlas upload without cloning.
§Returns
Option<&DirectGpuAtlasUpload>- Borrowed RGBA8 image atlas upload when present.
Source§impl DirectGpuFrameBatch
impl DirectGpuFrameBatch
pub fn get_viewport_width(&self) -> u32
pub fn get_mut_viewport_width(&mut self) -> &mut u32
pub fn set_viewport_width(&mut self, val: u32) -> &mut Self
pub fn get_viewport_height(&self) -> u32
pub fn get_mut_viewport_height(&mut self) -> &mut u32
pub fn set_viewport_height(&mut self, val: u32) -> &mut Self
pub fn get_clear_rgba(&self) -> [f32; 4]
pub fn get_mut_clear_rgba(&mut self) -> &mut [f32; 4]
pub fn set_clear_rgba(&mut self, val: [f32; 4]) -> &mut Self
pub fn get_primitives(&self) -> &Vec<GpuPrimitiveInstance>
pub fn get_mut_primitives(&mut self) -> &mut Vec<GpuPrimitiveInstance>
pub fn set_primitives(&mut self, val: Vec<GpuPrimitiveInstance>) -> &mut Self
pub fn get_draw_ranges(&self) -> &Vec<DirectGpuBatchRange>
pub fn get_mut_draw_ranges(&mut self) -> &mut Vec<DirectGpuBatchRange>
pub fn set_draw_ranges(&mut self, val: Vec<DirectGpuBatchRange>) -> &mut Self
pub fn get_backdrop_blurs(&self) -> &Vec<GpuBackdropBlurPass>
pub fn get_mut_backdrop_blurs(&mut self) -> &mut Vec<GpuBackdropBlurPass>
pub fn set_backdrop_blurs(&mut self, val: Vec<GpuBackdropBlurPass>) -> &mut Self
pub fn get_glyph_r8_atlas(&self) -> DirectGpuAtlasUpload
pub fn try_get_glyph_r8_atlas(&self) -> &Option<DirectGpuAtlasUpload>
pub fn get_mut_glyph_r8_atlas(&mut self) -> &mut Option<DirectGpuAtlasUpload>
pub fn set_glyph_r8_atlas( &mut self, val: Option<DirectGpuAtlasUpload>, ) -> &mut Self
pub fn get_image_rgba8_atlas(&self) -> DirectGpuAtlasUpload
pub fn try_get_image_rgba8_atlas(&self) -> &Option<DirectGpuAtlasUpload>
pub fn get_mut_image_rgba8_atlas(&mut self) -> &mut Option<DirectGpuAtlasUpload>
pub fn set_image_rgba8_atlas( &mut self, val: Option<DirectGpuAtlasUpload>, ) -> &mut Self
pub fn get_instance_upload_bytes(&self) -> usize
pub fn get_mut_instance_upload_bytes(&mut self) -> &mut usize
pub fn set_instance_upload_bytes(&mut self, val: usize) -> &mut Self
pub fn get_cpu_mirror_active(&self) -> bool
pub fn get_mut_cpu_mirror_active(&mut self) -> &mut bool
pub fn set_cpu_mirror_active(&mut self, val: bool) -> &mut Self
pub fn get_upload_strategy(&self) -> MobileUploadStrategy
pub fn get_mut_upload_strategy(&mut self) -> &mut MobileUploadStrategy
pub fn set_upload_strategy(&mut self, val: MobileUploadStrategy) -> &mut Self
Trait Implementations§
Source§impl Clone for DirectGpuFrameBatch
impl Clone for DirectGpuFrameBatch
Source§impl Debug for DirectGpuFrameBatch
impl Debug for DirectGpuFrameBatch
Source§impl Default for DirectGpuFrameBatch
impl Default for DirectGpuFrameBatch
Source§impl PartialEq for DirectGpuFrameBatch
impl PartialEq for DirectGpuFrameBatch
impl StructuralPartialEq for DirectGpuFrameBatch
Auto Trait Implementations§
impl Forget for DirectGpuFrameBatch
impl Freeze for DirectGpuFrameBatchwhere
*const u8 is !null: Freeze,
PhantomData<GpuPrimitiveInstance>: Freeze,
PhantomData<DirectGpuBatchRange>: Freeze,
PhantomData<GpuBackdropBlurPass>: Freeze,
PhantomData<u8>: Freeze,
impl Move for DirectGpuFrameBatch
impl RefUnwindSafe for DirectGpuFrameBatch
impl Send for DirectGpuFrameBatchwhere
RawVecInner: Send,
impl Sync for DirectGpuFrameBatchwhere
RawVecInner: Sync,
impl Unpin for DirectGpuFrameBatch
impl UnsafeUnpin for DirectGpuFrameBatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<GpuPrimitiveInstance>: UnsafeUnpin,
PhantomData<DirectGpuBatchRange>: UnsafeUnpin,
PhantomData<GpuBackdropBlurPass>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for DirectGpuFrameBatchwhere
RawVecInner: UnwindSafe,
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