#[repr(C)]pub struct IPLSceneSettings {
pub type_: IPLSceneType,
pub closestHitCallback: IPLClosestHitCallback,
pub anyHitCallback: IPLAnyHitCallback,
pub batchedClosestHitCallback: IPLBatchedClosestHitCallback,
pub batchedAnyHitCallback: IPLBatchedAnyHitCallback,
pub userData: *mut c_void,
pub embreeDevice: IPLEmbreeDevice,
pub radeonRaysDevice: IPLRadeonRaysDevice,
}Expand description
Settings used to create a scene.
Fields§
§type_: IPLSceneTypeType of scene to create.
closestHitCallback: IPLClosestHitCallbackCallback for finding the closest hit along a ray. Only for \c IPL_SCENETYPE_CUSTOM.
anyHitCallback: IPLAnyHitCallbackCallback for finding whether a ray hits anything. Only for \c IPL_SCENETYPE_CUSTOM.
batchedClosestHitCallback: IPLBatchedClosestHitCallbackCallback for finding the closest hit along a batch of rays. Only for \c IPL_SCENETYPE_CUSTOM.
batchedAnyHitCallback: IPLBatchedAnyHitCallbackCallback for finding whether a batch of rays hits anything. Only for \c IPL_SCENETYPE_CUSTOM.
userData: *mut c_voidArbitrary user-provided data for use by ray tracing callbacks. Only for \c IPL_SCENETYPE_CUSTOM.
embreeDevice: IPLEmbreeDeviceHandle to an Embree device. Only for \c IPL_SCENETYPE_EMBREE.
radeonRaysDevice: IPLRadeonRaysDeviceHandle to a Radeon Rays device. Only for \c IPL_SCENETYPE_RADEONRAYS.
Trait Implementations§
Source§impl Clone for IPLSceneSettings
impl Clone for IPLSceneSettings
Source§fn clone(&self) -> IPLSceneSettings
fn clone(&self) -> IPLSceneSettings
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 IPLSceneSettings
impl Debug for IPLSceneSettings
impl Copy for IPLSceneSettings
Auto Trait Implementations§
impl Freeze for IPLSceneSettings
impl RefUnwindSafe for IPLSceneSettings
impl !Send for IPLSceneSettings
impl !Sync for IPLSceneSettings
impl Unpin for IPLSceneSettings
impl UnwindSafe for IPLSceneSettings
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