#[repr(C)]pub struct GpuStrip {
pub x: u16,
pub y: u16,
pub width: u16,
pub dense_width_or_rect_height: u16,
pub col_idx_or_rect_frac: u32,
pub payload: u32,
pub paint_and_rect_flag: u32,
pub depth_index: u32,
}Expand description
A GPU strip instance for rendering.
This struct corresponds to the StripInstance struct in the shader.
See the StripInstance documentation in render.wesl for detailed field descriptions.
Fields§
§x: u16See StripInstance::xy documentation in render.wesl.
y: u16See StripInstance::xy documentation in render.wesl.
width: u16See StripInstance::dense_width_or_rect_height documentation in render.wesl.
dense_width_or_rect_height: u16See StripInstance::dense_width_or_rect_height documentation in render.wesl.
col_idx_or_rect_frac: u32See StripInstance::col_idx_or_rect_frac documentation in render.wesl.
payload: u32See StripInstance::payload documentation in render.wesl.
paint_and_rect_flag: u32See StripInstance::paint_and_rect_flag documentation in render.wesl.
depth_index: u32Painter’s-order index used to compute z-depth for early-z rejection in shader. In other words, the back-most draw has index 0 and every additional draw in front has an incrementing index.
Implementations§
Source§impl GpuStrip
impl GpuStrip
Sourcepub fn vertex_attributes() -> [VertexAttribute; 6]
pub fn vertex_attributes() -> [VertexAttribute; 6]
Vertex attributes for the strip
Trait Implementations§
impl Copy for GpuStrip
impl Pod for GpuStrip
Auto Trait Implementations§
impl Freeze for GpuStrip
impl RefUnwindSafe for GpuStrip
impl Send for GpuStrip
impl Sync for GpuStrip
impl Unpin for GpuStrip
impl UnsafeUnpin for GpuStrip
impl UnwindSafe for GpuStrip
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
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
bits
as &Self.