#[repr(C)]pub struct ConfigUniform {Show 13 fields
pub width_in_tiles: u32,
pub height_in_tiles: u32,
pub target_width: u32,
pub target_height: u32,
pub base_color: u32,
pub layout: Layout,
pub lines_size: u32,
pub binning_size: u32,
pub tiles_size: u32,
pub seg_counts_size: u32,
pub segments_size: u32,
pub blend_size: u32,
pub ptcl_size: u32,
}Expand description
Uniform render configuration data used by all GPU stages.
This data structure must be kept in sync with the definition in
shaders/shared/config.wgsl.
Fields§
§width_in_tiles: u32Width of the scene in tiles.
height_in_tiles: u32Height of the scene in tiles.
target_width: u32Width of the target in pixels.
target_height: u32Height of the target in pixels.
base_color: u32The base background color applied to the target before any blends.
layout: LayoutLayout of packed scene data.
lines_size: u32Size of line soup buffer allocation (in LineSoups)
binning_size: u32Size of binning buffer allocation (in u32s).
tiles_size: u32Size of tile buffer allocation (in Tiles).
seg_counts_size: u32Size of segment count buffer allocation (in SegmentCounts).
segments_size: u32Size of segment buffer allocation (in PathSegments).
blend_size: u32Size of blend spill buffer (in u32 pixels).
ptcl_size: u32Size of per-tile command list buffer allocation (in u32s).
Trait Implementations§
Source§impl Clone for ConfigUniform
impl Clone for ConfigUniform
impl Copy for ConfigUniform
Source§impl Debug for ConfigUniform
impl Debug for ConfigUniform
Source§impl Default for ConfigUniform
impl Default for ConfigUniform
impl Pod for ConfigUniform
Auto Trait Implementations§
impl Freeze for ConfigUniform
impl RefUnwindSafe for ConfigUniform
impl Send for ConfigUniform
impl Sync for ConfigUniform
impl Unpin for ConfigUniform
impl UnsafeUnpin for ConfigUniform
impl UnwindSafe for ConfigUniform
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.