pub struct RequestRayTracingForward {
    pub geometry: Geometry,
    pub ray: Hash,
    pub material: Hash,
    pub sample_per_pixel: (usize, usize),
    pub max_bounce: (usize, usize, usize, usize),
    pub switches: (u8, u8, u8, u8),
    pub clip_near: (f32, f32, f32),
    pub camera_space: bool,
    pub requires_grad: bool,
    pub srand: i32,
    pub low_discrepancy: u32,
}Expand description
Arguments for ray-tracing forward task
See arguments in ray_tracing_forward for details
Fields§
§geometry: GeometryLazy-loading geometry
ray: HashLazy-loading ray
material: HashLazy-loading texture and envmap
sample_per_pixel: (usize, usize)§max_bounce: (usize, usize, usize, usize)§switches: (u8, u8, u8, u8)§clip_near: (f32, f32, f32)§camera_space: bool§requires_grad: bool§srand: i32§low_discrepancy: u32Implementations§
Source§impl RequestRayTracingForward
 
impl RequestRayTracingForward
Sourcepub fn size(&self, data_cache: &DataCache) -> Result<usize>
 
pub fn size(&self, data_cache: &DataCache) -> Result<usize>
Number of rays in RequestRayTracingForward
Sourcepub fn material_resolution(
    &self,
    data_cache: &DataCache,
) -> Result<(usize, usize)>
 
pub fn material_resolution( &self, data_cache: &DataCache, ) -> Result<(usize, usize)>
Texture resolution and envmap resolution in RequestRayTracingForward
Trait Implementations§
Source§impl Clone for RequestRayTracingForward
 
impl Clone for RequestRayTracingForward
Source§fn clone(&self) -> RequestRayTracingForward
 
fn clone(&self) -> RequestRayTracingForward
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestRayTracingForward
 
impl Debug for RequestRayTracingForward
Source§impl<'de> Deserialize<'de> for RequestRayTracingForward
 
impl<'de> Deserialize<'de> for RequestRayTracingForward
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RequestRayTracingForward
 
impl PartialEq for RequestRayTracingForward
Source§impl Serialize for RequestRayTracingForward
 
impl Serialize for RequestRayTracingForward
impl StructuralPartialEq for RequestRayTracingForward
Auto Trait Implementations§
impl Freeze for RequestRayTracingForward
impl RefUnwindSafe for RequestRayTracingForward
impl Send for RequestRayTracingForward
impl Sync for RequestRayTracingForward
impl Unpin for RequestRayTracingForward
impl UnwindSafe for RequestRayTracingForward
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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.