#[repr(C)]pub struct FillPatternVertex {
pub position: [f32; 3],
pub color: [f32; 4],
pub uv: [f32; 2],
}Expand description
A vertex for the fill-pattern GPU pipeline.
Extends super::fill_vertex::FillVertex with per-vertex UV
coordinates used to sample the repeating pattern texture.
Fields§
§position: [f32; 3]Position [x, y, z] in camera-relative meters.
color: [f32; 4]Per-vertex RGBA color (used as fallback / tint).
uv: [f32; 2]Pattern UV coordinates.
Values outside [0, 1] repeat via the GPU sampler’s Repeat
address mode. UV = world_position / pattern_size.
Implementations§
Source§impl FillPatternVertex
impl FillPatternVertex
Sourcepub fn layout() -> VertexBufferLayout<'static>
pub fn layout() -> VertexBufferLayout<'static>
Vertex buffer layout for the fill-pattern pipeline.
Trait Implementations§
Source§impl Clone for FillPatternVertex
impl Clone for FillPatternVertex
Source§fn clone(&self) -> FillPatternVertex
fn clone(&self) -> FillPatternVertex
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 FillPatternVertex
impl Debug for FillPatternVertex
impl Copy for FillPatternVertex
impl Pod for FillPatternVertex
Auto Trait Implementations§
impl Freeze for FillPatternVertex
impl RefUnwindSafe for FillPatternVertex
impl Send for FillPatternVertex
impl Sync for FillPatternVertex
impl Unpin for FillPatternVertex
impl UnsafeUnpin for FillPatternVertex
impl UnwindSafe for FillPatternVertex
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.