Skip to main content

BufferSizes

Struct BufferSizes 

Source
pub struct BufferSizes {
Show 24 fields pub path_reduced: BufferSize<PathMonoid>, pub path_reduced2: BufferSize<PathMonoid>, pub path_reduced_scan: BufferSize<PathMonoid>, pub path_monoids: BufferSize<PathMonoid>, pub path_bboxes: BufferSize<PathBbox>, pub draw_reduced: BufferSize<DrawMonoid>, pub draw_monoids: BufferSize<DrawMonoid>, pub info: BufferSize<u32>, pub clip_inps: BufferSize<Clip>, pub clip_els: BufferSize<ClipElement>, pub clip_bics: BufferSize<ClipBic>, pub clip_bboxes: BufferSize<ClipBbox>, pub draw_bboxes: BufferSize<DrawBbox>, pub bump_alloc: BufferSize<BumpAllocators>, pub indirect_count: BufferSize<IndirectCount>, pub bin_headers: BufferSize<BinHeader>, pub paths: BufferSize<Path>, pub lines: BufferSize<LineSoup>, pub bin_data: BufferSize<u32>, pub tiles: BufferSize<Tile>, pub seg_counts: BufferSize<SegmentCount>, pub segments: BufferSize<PathSegment>, pub blend_spill: BufferSize<u32>, pub ptcl: BufferSize<u32>,
}
Expand description

Computed sizes for all buffers.

Fields§

§path_reduced: BufferSize<PathMonoid>§path_reduced2: BufferSize<PathMonoid>§path_reduced_scan: BufferSize<PathMonoid>§path_monoids: BufferSize<PathMonoid>§path_bboxes: BufferSize<PathBbox>§draw_reduced: BufferSize<DrawMonoid>§draw_monoids: BufferSize<DrawMonoid>§info: BufferSize<u32>§clip_inps: BufferSize<Clip>§clip_els: BufferSize<ClipElement>§clip_bics: BufferSize<ClipBic>§clip_bboxes: BufferSize<ClipBbox>§draw_bboxes: BufferSize<DrawBbox>§bump_alloc: BufferSize<BumpAllocators>§indirect_count: BufferSize<IndirectCount>§bin_headers: BufferSize<BinHeader>§paths: BufferSize<Path>§lines: BufferSize<LineSoup>§bin_data: BufferSize<u32>§tiles: BufferSize<Tile>§seg_counts: BufferSize<SegmentCount>§segments: BufferSize<PathSegment>§blend_spill: BufferSize<u32>§ptcl: BufferSize<u32>

Implementations§

Source§

impl BufferSizes

Source

pub fn new( layout: &Layout, workgroups: &WorkgroupCounts, width_in_tiles: u32, height_in_tiles: u32, budget: &BumpBudget, ) -> Self

Sizes for a scene of this layout, at a viewport of width_in_tiles x height_in_tiles, given a budget of bump-allocated scratch.

The known-size buffers are functions of the scene and are upstream’s own code. The bump-allocated ones are the reservation this fork exists to change: see BumpBudget.

Trait Implementations§

Source§

impl Clone for BufferSizes

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for BufferSizes

Source§

impl Debug for BufferSizes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BufferSizes

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.