#[repr(C)]pub struct RaymarchVolumeUniforms {
pub centre: [f32; 3],
pub _pad0: f32,
pub extent: [f32; 3],
pub _pad1: f32,
pub cone_ratio: f32,
pub max_distance: f32,
pub max_steps: i32,
pub receive_shadows: i32,
pub params: [f32; 32],
}Expand description
The per-volume SdfVolumeUniforms cbuffer (b1, 176 bytes; aligned to 256 in
the cbuffer allocation).
Fields§
§centre: [f32; 3]World-space centre.
_pad0: f32Padding so the field layout matches the shader-side struct.
extent: [f32; 3]Half-extents from the centre, in world units.
_pad1: f32Padding so the field layout matches the shader-side struct.
cone_ratio: f32Cone-tracing footprint growth per unit of march distance.
max_distance: f32Furthest world distance the march travels.
max_steps: i32Ray-march step cap.
receive_shadows: i32Non-zero when the volume samples the shadow maps.
params: [f32; 32]The volume’s authored SDF parameters.
Trait Implementations§
Source§impl Clone for RaymarchVolumeUniforms
impl Clone for RaymarchVolumeUniforms
Source§fn clone(&self) -> RaymarchVolumeUniforms
fn clone(&self) -> RaymarchVolumeUniforms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RaymarchVolumeUniforms
Auto Trait Implementations§
impl Freeze for RaymarchVolumeUniforms
impl RefUnwindSafe for RaymarchVolumeUniforms
impl Send for RaymarchVolumeUniforms
impl Sync for RaymarchVolumeUniforms
impl Unpin for RaymarchVolumeUniforms
impl UnsafeUnpin for RaymarchVolumeUniforms
impl UnwindSafe for RaymarchVolumeUniforms
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