Skip to main content

RaytraceConfig

Struct RaytraceConfig 

Source
pub struct RaytraceConfig { /* private fields */ }
Expand description

Complete configuration descriptor for a reusable RaytraceSession.

Implementations§

Source§

impl RaytraceConfig

Constructors and fluent configuration helpers for RaytraceConfig.

Source

pub fn new(width: u32, height: u32) -> Self

Creates a RaytraceConfig sized for width x height pixels with sensible path-tracing defaults.

§Arguments
  • u32 - Viewport width in pixels.
  • u32 - Viewport height in pixels.
§Returns
  • Self - Configured RaytraceConfig.
Source

pub fn with_integrator(self, integrator: RtIntegratorMode) -> Self

Selects the active ray-tracing integrator mode.

§Arguments
  • Self - Base configuration.
  • RtIntegratorMode - Integrator mode to activate.
§Returns
  • Self - Updated configuration.
Source

pub fn with_tonemap(self, tonemap: RtTonemapMode) -> Self

Selects the display tone-mapping operator.

§Arguments
  • Self - Base configuration.
  • RtTonemapMode - Tone-mapping curve.
§Returns
  • Self - Updated configuration.
Source

pub fn with_exposure(self, exposure: f32) -> Self

Sets the linear HDR exposure multiplier.

§Arguments
  • Self - Base configuration.
  • f32 - Positive exposure multiplier.
§Returns
  • Self - Updated configuration.
Source

pub fn with_tile_size(self, tile_size: u32) -> Self

Sets the square tile edge size in pixels for progressive stepping.

§Arguments
  • Self - Base configuration.
  • u32 - Tile width/height in pixels (>= 1).
§Returns
  • Self - Updated configuration.
Source

pub fn with_denoiser(self, enabled: bool) -> Self

Enables or disables the multi-pass À-Trous SVGF spatial denoiser.

§Arguments
  • Self - Base configuration.
  • bool - Whether SVGF denoising runs after accumulation.
§Returns
  • Self - Updated configuration.
Source

pub fn with_svgf(self, svgf: SvgfConfig) -> Self

Overrides the SVGF denoiser configuration.

§Arguments
  • Self - Base configuration.
  • SvgfConfig - Denoiser edge-stopping parameters.
§Returns
  • Self - Updated configuration.
Source

pub fn with_seed(self, seed: u32) -> Self

Overrides the deterministic base RNG seed.

§Arguments
  • Self - Base configuration.
  • u32 - Seed integer.
§Returns
  • Self - Updated configuration.
Source§

impl RaytraceConfig

Implements impl #impl_generics #name #ty_generics #where_clause.

Source

pub fn get_width(&self) -> u32

Source

pub fn get_mut_width(&mut self) -> &mut u32

Source

pub fn set_width(&mut self, val: u32) -> &mut Self

Source

pub fn get_height(&self) -> u32

Source

pub fn get_mut_height(&mut self) -> &mut u32

Source

pub fn set_height(&mut self, val: u32) -> &mut Self

Source

pub fn get_integrator(&self) -> RtIntegratorMode

Source

pub fn get_mut_integrator(&mut self) -> &mut RtIntegratorMode

Source

pub fn set_integrator(&mut self, val: RtIntegratorMode) -> &mut Self

Source

pub fn get_tonemap(&self) -> RtTonemapMode

Source

pub fn get_mut_tonemap(&mut self) -> &mut RtTonemapMode

Source

pub fn set_tonemap(&mut self, val: RtTonemapMode) -> &mut Self

Source

pub fn get_exposure(&self) -> f32

Source

pub fn get_mut_exposure(&mut self) -> &mut f32

Source

pub fn set_exposure(&mut self, val: f32) -> &mut Self

Source

pub fn get_tile_size(&self) -> u32

Source

pub fn get_mut_tile_size(&mut self) -> &mut u32

Source

pub fn set_tile_size(&mut self, val: u32) -> &mut Self

Source

pub fn get_enable_denoiser(&self) -> bool

Source

pub fn get_mut_enable_denoiser(&mut self) -> &mut bool

Source

pub fn set_enable_denoiser(&mut self, val: bool) -> &mut Self

Source

pub fn get_whitted(&self) -> WhittedIntegrator

Source

pub fn get_mut_whitted(&mut self) -> &mut WhittedIntegrator

Source

pub fn set_whitted(&mut self, val: WhittedIntegrator) -> &mut Self

Source

pub fn get_path_trace(&self) -> PathTraceIntegrator

Source

pub fn get_mut_path_trace(&mut self) -> &mut PathTraceIntegrator

Source

pub fn set_path_trace(&mut self, val: PathTraceIntegrator) -> &mut Self

Source

pub fn get_rtao(&self) -> RtaoIntegrator

Source

pub fn get_mut_rtao(&mut self) -> &mut RtaoIntegrator

Source

pub fn set_rtao(&mut self, val: RtaoIntegrator) -> &mut Self

Source

pub fn get_hybrid_preview(&self) -> HybridPreviewIntegrator

Source

pub fn get_mut_hybrid_preview(&mut self) -> &mut HybridPreviewIntegrator

Source

pub fn set_hybrid_preview(&mut self, val: HybridPreviewIntegrator) -> &mut Self

Source

pub fn get_svgf(&self) -> SvgfConfig

Source

pub fn get_mut_svgf(&mut self) -> &mut SvgfConfig

Source

pub fn set_svgf(&mut self, val: SvgfConfig) -> &mut Self

Source

pub fn get_seed(&self) -> u32

Source

pub fn get_mut_seed(&mut self) -> &mut u32

Source

pub fn set_seed(&mut self, val: u32) -> &mut Self

Trait Implementations§

Source§

impl Clone for RaytraceConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RaytraceConfig

Source§

impl Debug for RaytraceConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RaytraceConfig

Default session configuration targeting interactive path tracing with AgX tone mapping and SVGF denoising.

Source§

fn default() -> Self

Creates a default RaytraceConfig at 320x180 using PathTrace, Agx, and SvgfDenoiser.

§Returns
  • Self - Default ray-tracing configuration.
Source§

impl PartialEq for RaytraceConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RaytraceConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.