Struct DielectricVolumeIopGpu
#[repr(C)]pub struct DielectricVolumeIopGpu {
pub ior_spectrum: [f32; 3],
pub _pad0: f32,
pub absorption_coeff: [f32; 3],
pub _pad1: f32,
pub rayleigh_scattering: [f32; 3],
pub _pad2: f32,
pub mie_scattering: [f32; 4],
}Expand description
64-byte Inherent Optical Properties (IOP) descriptor mirroring DielectricVolumeIop in HYDROLOGIC_OPTICS_WGSL.
Fields§
§ior_spectrum: [f32; 3]§_pad0: f32§absorption_coeff: [f32; 3]§_pad1: f32§rayleigh_scattering: [f32; 3]§_pad2: f32§mie_scattering: [f32; 4]Implementations§
§impl DielectricVolumeIopGpu
impl DielectricVolumeIopGpu
pub fn beer_lambert_transmittance(&self, distance_m: f32) -> [f32; 3]
pub fn beer_lambert_transmittance(&self, distance_m: f32) -> [f32; 3]
Evaluates Beer-Lambert transmittance $T(d) = \exp(-(a + b_r + b_m) d)$ with zero heap allocations.
Trait Implementations§
§impl Clone for DielectricVolumeIopGpu
impl Clone for DielectricVolumeIopGpu
§fn clone(&self) -> DielectricVolumeIopGpu
fn clone(&self) -> DielectricVolumeIopGpu
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 DielectricVolumeIopGpu
§impl Debug for DielectricVolumeIopGpu
impl Debug for DielectricVolumeIopGpu
§impl PartialEq for DielectricVolumeIopGpu
impl PartialEq for DielectricVolumeIopGpu
impl Pod for DielectricVolumeIopGpu
impl StructuralPartialEq for DielectricVolumeIopGpu
Auto Trait Implementations§
impl Freeze for DielectricVolumeIopGpu
impl RefUnwindSafe for DielectricVolumeIopGpu
impl Send for DielectricVolumeIopGpu
impl Sync for DielectricVolumeIopGpu
impl Unpin for DielectricVolumeIopGpu
impl UnsafeUnpin for DielectricVolumeIopGpu
impl UnwindSafe for DielectricVolumeIopGpu
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
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