Struct libredr_common::message::RequestRayTracingForward
source · 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: Geometry
Lazy-loading geometry
ray: Hash
Lazy-loading ray
material: Hash
Lazy-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: u32
Implementations§
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 copy 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§fn eq(&self, other: &RequestRayTracingForward) -> bool
fn eq(&self, other: &RequestRayTracingForward) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.