#[repr(C)]pub struct RteTileVertex {
pub pos_u: [f32; 4],
pub norm_v: [f32; 4],
}Expand description
Tile-local RTC terrain vertex packed into two vec4<f32>s for GPU vertex pulling.
pos_u = [local_x, local_y, local_z, u] relative to the tile’s center_ecef,
norm_v = [nx, ny, nz, v]. Using two 16-byte vectors eliminates WGSL vec3 alignment padding.
Fields§
§pos_u: [f32; 4]§norm_v: [f32; 4]Implementations§
Trait Implementations§
Source§impl Clone for RteTileVertex
impl Clone for RteTileVertex
impl Copy for RteTileVertex
Source§impl Debug for RteTileVertex
impl Debug for RteTileVertex
Source§impl PartialEq for RteTileVertex
impl PartialEq for RteTileVertex
impl Pod for RteTileVertex
impl StructuralPartialEq for RteTileVertex
Auto Trait Implementations§
impl Forget for RteTileVertex
impl Freeze for RteTileVertex
impl Move for RteTileVertex
impl RefUnwindSafe for RteTileVertex
impl Send for RteTileVertex
impl Sync for RteTileVertex
impl Unpin for RteTileVertex
impl UnsafeUnpin for RteTileVertex
impl UnwindSafe for RteTileVertex
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.