Struct EnvironmentProbeGpu
#[repr(C)]pub struct EnvironmentProbeGpu {
pub position_radius: [f32; 4],
pub irradiance: [f32; 4],
pub specular_levels: [[f32; 4]; 5],
pub dominant_valid: [f32; 4],
}Expand description
Portable bounded environment-probe evaluation and fallback policy. One fixed-layout probe record consumed by the viewport material shader.
The values are source probe data (irradiance, filtered radiance, influence and direction),
not the result of evaluate_environment_lighting. Keeping this contract separate prevents
a CPU lighting result from being mistaken for a GPU binding.
Fields§
§position_radius: [f32; 4]§irradiance: [f32; 4]§specular_levels: [[f32; 4]; 5]§dominant_valid: [f32; 4]xyz is the dominant direction; w is the sanitized-valid flag.
Trait Implementations§
§impl Clone for EnvironmentProbeGpu
impl Clone for EnvironmentProbeGpu
§fn clone(&self) -> EnvironmentProbeGpu
fn clone(&self) -> EnvironmentProbeGpu
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 EnvironmentProbeGpu
§impl Debug for EnvironmentProbeGpu
impl Debug for EnvironmentProbeGpu
§impl Default for EnvironmentProbeGpu
impl Default for EnvironmentProbeGpu
§fn default() -> EnvironmentProbeGpu
fn default() -> EnvironmentProbeGpu
Returns the “default value” for a type. Read more
impl Pod for EnvironmentProbeGpu
Auto Trait Implementations§
impl Freeze for EnvironmentProbeGpu
impl RefUnwindSafe for EnvironmentProbeGpu
impl Send for EnvironmentProbeGpu
impl Sync for EnvironmentProbeGpu
impl Unpin for EnvironmentProbeGpu
impl UnsafeUnpin for EnvironmentProbeGpu
impl UnwindSafe for EnvironmentProbeGpu
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 moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.