pub struct Geometry {
pub positions: Vec<[f32; 3]>,
pub indices: Option<Vec<u32>>,
pub boxes: Vec<[[f32; 3]; 2]>,
pub opaque: bool,
}Expand description
One geometry of a bottom level: triangles, or (when boxes is not empty) procedural primitives, each an
axis-aligned box the program intersects itself.
Fields§
§positions: Vec<[f32; 3]>The triangles’ vertex positions in object space.
indices: Option<Vec<u32>>Vertex indices, three to a triangle; none: the positions are the triangles, three to each.
boxes: Vec<[[f32; 3]; 2]>The boxes of a procedural geometry, each as its minimum and maximum corner (the positions are then unused).
opaque: boolWhether its primitives are opaque (D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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