pub struct HitGroup {
pub name: String,
pub kind: HitGroupKind,
pub any_hit: Option<String>,
pub closest_hit: Option<String>,
pub intersection: Option<String>,
}Expand description
A hit group of a ray tracing library: the programs it runs, named by the library’s exports (none where the group has no such program).
Fields§
§name: StringThe hit group’s name in the library.
kind: HitGroupKindWhether it runs on triangles or procedural primitives.
any_hit: Option<String>Export name of the any-hit program, if any.
closest_hit: Option<String>Export name of the closest-hit program, if any.
intersection: Option<String>Export name of the intersection program; None for a triangle group.
Trait Implementations§
impl Eq for HitGroup
Source§impl Ord for HitGroup
impl Ord for HitGroup
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for HitGroup
impl PartialOrd for HitGroup
impl StructuralPartialEq for HitGroup
Auto Trait Implementations§
impl Freeze for HitGroup
impl RefUnwindSafe for HitGroup
impl Send for HitGroup
impl Sync for HitGroup
impl Unpin for HitGroup
impl UnsafeUnpin for HitGroup
impl UnwindSafe for HitGroup
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