Skip to main content

Hyperslice4DUniforms

Struct Hyperslice4DUniforms 

Source
#[repr(C)]
pub struct Hyperslice4DUniforms {
Show 22 fields pub camera_pos: [f32; 3], pub _pad0: f32, pub camera_forward: [f32; 3], pub _pad1: f32, pub camera_right: [f32; 3], pub _pad2: f32, pub camera_up: [f32; 3], pub fov_y_tan: f32, pub resolution: [f32; 2], pub time: f32, pub tick: f32, pub w_slice: f32, pub body_count: f32, pub viewport_origin: [f32; 2], pub params: [f32; 4], pub near: f32, pub body_offset: f32, pub _pad3: [f32; 2], pub sky_below: [f32; 3], pub _pad4: f32, pub sky_above: [f32; 3], pub _pad5: f32,
}
Expand description

Bind group 0, binding 0; matches the kernel’s Uniforms.

Fields§

§camera_pos: [f32; 3]§_pad0: f32§camera_forward: [f32; 3]§_pad1: f32§camera_right: [f32; 3]§_pad2: f32§camera_up: [f32; 3]§fov_y_tan: f32§resolution: [f32; 2]§time: f32§tick: f32§w_slice: f32§body_count: f32§viewport_origin: [f32; 2]

Framebuffer pixel of the viewport’s top-left.

§params: [f32; 4]§near: f32§body_offset: f32§_pad3: [f32; 2]§sky_below: [f32; 3]§_pad4: f32§sky_above: [f32; 3]§_pad5: f32

Trait Implementations§

Source§

impl Clone for Hyperslice4DUniforms

Source§

fn clone(&self) -> Hyperslice4DUniforms

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Hyperslice4DUniforms

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Hyperslice4DUniforms

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Zeroable for Hyperslice4DUniforms

§

fn zeroed() -> Self

Source§

impl Copy for Hyperslice4DUniforms

Source§

impl Pod for Hyperslice4DUniforms

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

§

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.
§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> AnyBitPattern for T
where T: Pod,

§

impl<T> NoUninit for T
where T: Pod,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,