pub struct GpuPathPipeline {
pub viewport_width: f32,
pub viewport_height: f32,
pub uniforms: GpuPathUniforms,
pub batch: GpuPathBatch,
pub total_uploaded_bytes: usize,
pub compiled_frames: u64,
}Expand description
High-level orchestration pipeline for compiling vector paths into GPU compute/render buffers.
Fields§
§viewport_width: f32§viewport_height: f32§uniforms: GpuPathUniforms§batch: GpuPathBatch§total_uploaded_bytes: usize§compiled_frames: u64Implementations§
Source§impl GpuPathPipeline
impl GpuPathPipeline
pub fn new(viewport_width: f32, viewport_height: f32) -> Self
pub fn resize(&mut self, width: f32, height: f32)
Sourcepub fn compile_frame(
&mut self,
list: &DisplayList,
damage: Option<Rect>,
) -> usize
pub fn compile_frame( &mut self, list: &DisplayList, damage: Option<Rect>, ) -> usize
Compiles a frame from a DisplayList and optional damage rectangle into the internal path batch buffer.
pub fn segment_bytes(&self) -> &[u8] ⓘ
pub fn uniform_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for GpuPathPipeline
impl Clone for GpuPathPipeline
Auto Trait Implementations§
impl Forget for GpuPathPipeline
impl Freeze for GpuPathPipeline
impl Move for GpuPathPipeline
impl RefUnwindSafe for GpuPathPipeline
impl Send for GpuPathPipeline
impl Sync for GpuPathPipeline
impl Unpin for GpuPathPipeline
impl UnsafeUnpin for GpuPathPipeline
impl UnwindSafe for GpuPathPipeline
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