#[repr(C, align(16))]pub struct GpuSdfQuery {
pub x: f32,
pub y: f32,
pub z: f32,
pub radius: f32,
}Expand description
Per-query input data (CPU → GPU)
Packed for GPU transfer: 16 bytes per query
Fields§
§x: f32Query position (x, y, z)
y: f32Y position
z: f32Z position
radius: f32Query radius (for sphere-SDF test, 0 for point query)
Trait Implementations§
Source§impl Clone for GpuSdfQuery
impl Clone for GpuSdfQuery
impl Copy for GpuSdfQuery
Source§impl Debug for GpuSdfQuery
impl Debug for GpuSdfQuery
Source§impl PartialEq for GpuSdfQuery
impl PartialEq for GpuSdfQuery
impl StructuralPartialEq for GpuSdfQuery
Auto Trait Implementations§
impl Freeze for GpuSdfQuery
impl RefUnwindSafe for GpuSdfQuery
impl Send for GpuSdfQuery
impl Sync for GpuSdfQuery
impl Unpin for GpuSdfQuery
impl UnsafeUnpin for GpuSdfQuery
impl UnwindSafe for GpuSdfQuery
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more