pub struct RtRayCounter { /* private fields */ }Expand description
Per-step ray telemetry counter separated into primary, shadow, and secondary bounce rays.
Implementations§
Source§impl RtRayCounter
Ray counter accumulation and summation helpers for RtRayCounter.
impl RtRayCounter
Ray counter accumulation and summation helpers for RtRayCounter.
Sourcepub fn add_primary(&mut self, count: u64)
pub fn add_primary(&mut self, count: u64)
Increments the primary ray count by count.
§Arguments
&Self- Mutable ray counter.u64- Number of primary rays to add.
Sourcepub fn add_shadow(&mut self, count: u64)
pub fn add_shadow(&mut self, count: u64)
Increments the shadow/occlusion ray count by count.
§Arguments
&Self- Mutable ray counter.u64- Number of shadow rays to add.
Sourcepub fn add_bounce(&mut self, count: u64)
pub fn add_bounce(&mut self, count: u64)
Increments the secondary bounce ray count by count.
§Arguments
&Self- Mutable ray counter.u64- Number of secondary bounce rays to add.
Sourcepub fn merge(&mut self, other: Self)
pub fn merge(&mut self, other: Self)
Merges another RtRayCounter into self.
§Arguments
&Self- Mutable ray counter.Self- Counter values to accumulate.
Sourcepub fn total_rays(&self) -> u64
pub fn total_rays(&self) -> u64
Source§impl RtRayCounter
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RtRayCounter
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_primary_rays(&self) -> u64
pub fn get_mut_primary_rays(&mut self) -> &mut u64
pub fn set_primary_rays(&mut self, val: u64) -> &mut Self
pub fn get_shadow_rays(&self) -> u64
pub fn get_mut_shadow_rays(&mut self) -> &mut u64
pub fn set_shadow_rays(&mut self, val: u64) -> &mut Self
pub fn get_bounce_rays(&self) -> u64
pub fn get_mut_bounce_rays(&mut self) -> &mut u64
pub fn set_bounce_rays(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for RtRayCounter
impl Clone for RtRayCounter
impl Copy for RtRayCounter
Source§impl Debug for RtRayCounter
impl Debug for RtRayCounter
Source§impl Default for RtRayCounter
impl Default for RtRayCounter
Source§impl PartialEq for RtRayCounter
impl PartialEq for RtRayCounter
impl StructuralPartialEq for RtRayCounter
Auto Trait Implementations§
impl Forget for RtRayCounter
impl Freeze for RtRayCounter
impl Move for RtRayCounter
impl RefUnwindSafe for RtRayCounter
impl Send for RtRayCounter
impl Sync for RtRayCounter
impl Unpin for RtRayCounter
impl UnsafeUnpin for RtRayCounter
impl UnwindSafe for RtRayCounter
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