#[repr(C)]pub struct CameraConfig {Show 22 fields
pub width: u32,
pub height: u32,
pub samples_per_pixel: u32,
pub max_bounces: u32,
pub cam_pos: [f32; 3],
pub _pad0: f32,
pub cam_forward: [f32; 3],
pub _pad1: f32,
pub cam_right: [f32; 3],
pub _pad2: f32,
pub cam_up: [f32; 3],
pub fov_tan: f32,
pub num_primitives: u32,
pub seed_offset: u32,
pub source_intensity: f32,
pub source_radius: f32,
pub source_pos: [f32; 3],
pub _pad3: f32,
pub lvk_c_steps: u32,
pub lvk_g_steps: u32,
pub lvk_g_max: f32,
pub lvk_max_intensity: f32,
}Expand description
Camera configuration — matches CameraConfig in camera.wgsl.
Fields§
§width: u32§height: u32§samples_per_pixel: u32§max_bounces: u32§cam_pos: [f32; 3]§_pad0: f32§cam_forward: [f32; 3]§_pad1: f32§cam_right: [f32; 3]§_pad2: f32§cam_up: [f32; 3]§fov_tan: f32§num_primitives: u32§seed_offset: u32§source_intensity: f32§source_radius: f32§source_pos: [f32; 3]§_pad3: f32§lvk_c_steps: u32§lvk_g_steps: u32§lvk_g_max: f32§lvk_max_intensity: f32Trait Implementations§
Source§impl Clone for CameraConfig
impl Clone for CameraConfig
Source§fn clone(&self) -> CameraConfig
fn clone(&self) -> CameraConfig
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 moreSource§impl Debug for CameraConfig
impl Debug for CameraConfig
impl Copy for CameraConfig
impl Pod for CameraConfig
Auto Trait Implementations§
impl Freeze for CameraConfig
impl RefUnwindSafe for CameraConfig
impl Send for CameraConfig
impl Sync for CameraConfig
impl Unpin for CameraConfig
impl UnsafeUnpin for CameraConfig
impl UnwindSafe for CameraConfig
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.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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.