#[repr(C)]pub struct HeatmapVertex {
pub position: [f32; 3],
pub quad_offset: [f32; 2],
pub params: [f32; 4],
}Expand description
A vertex for the heatmap GPU pipeline.
Each heatmap point is rendered as a screen-aligned quad. The fragment shader accumulates Gaussian weight contributions into a framebuffer which is then colour-mapped in a second pass.
Fields§
§position: [f32; 3]Point centre position [x, y, z] in camera-relative meters.
quad_offset: [f32; 2]Quad corner offset [u, v] in [-1..1] range.
params: [f32; 4]Heatmap parameters: [weight, radius, intensity, 0].
Implementations§
Source§impl HeatmapVertex
impl HeatmapVertex
Sourcepub fn layout() -> VertexBufferLayout<'static>
pub fn layout() -> VertexBufferLayout<'static>
Vertex buffer layout for the heatmap pipeline.
Trait Implementations§
Source§impl Clone for HeatmapVertex
impl Clone for HeatmapVertex
Source§fn clone(&self) -> HeatmapVertex
fn clone(&self) -> HeatmapVertex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeatmapVertex
impl Debug for HeatmapVertex
impl Copy for HeatmapVertex
impl Pod for HeatmapVertex
Auto Trait Implementations§
impl Freeze for HeatmapVertex
impl RefUnwindSafe for HeatmapVertex
impl Send for HeatmapVertex
impl Sync for HeatmapVertex
impl Unpin for HeatmapVertex
impl UnsafeUnpin for HeatmapVertex
impl UnwindSafe for HeatmapVertex
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
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.