pub struct GpuLine {
pub a: [f32; 3],
pub b: [f32; 3],
pub color: [f32; 4],
pub width_px: f32,
pub depth_test: bool,
}Expand description
WGPU-backed renderer. Owns the device, queue, and surface
bound to the host’s window. [Self::render] is the GPU.1
clear-to-colour path; [Self::render_chunk] is GPU.3’s
single-chunk DDA marcher.
The window is consumed only at construction — wgpu’s
Surface<'static> keeps its own Arc clone of the handle, so
the renderer holds no window field of its own.
A world-space line segment for GpuRenderer::draw_lines_deferred.
color is straight RGBA in 0..=1 (the alpha drives the over-blend);
width_px is the screen-space thickness; depth_test occludes the
segment behind nearer marched geometry.
Fields§
§a: [f32; 3]§b: [f32; 3]§color: [f32; 4]§width_px: f32§depth_test: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for GpuLine
impl RefUnwindSafe for GpuLine
impl Send for GpuLine
impl Sync for GpuLine
impl Unpin for GpuLine
impl UnsafeUnpin for GpuLine
impl UnwindSafe for GpuLine
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