pub struct AccelerationStructureTriangles<'a, B: DynBuffer + ?Sized> {
    pub vertex_buffer: Option<&'a B>,
    pub vertex_format: VertexFormat,
    pub first_vertex: u32,
    pub vertex_count: u32,
    pub vertex_stride: BufferAddress,
    pub indices: Option<AccelerationStructureTriangleIndices<'a, B>>,
    pub transform: Option<AccelerationStructureTriangleTransform<'a, B>>,
    pub flags: AccelerationStructureGeometryFlags,
}Expand description
- first_vertex- offset in the vertex buffer (as number of vertices)
- indices- optional index buffer with attributes
- transform- optional transform
Fields§
§vertex_buffer: Option<&'a B>§vertex_format: VertexFormat§first_vertex: u32§vertex_count: u32§vertex_stride: BufferAddress§indices: Option<AccelerationStructureTriangleIndices<'a, B>>§transform: Option<AccelerationStructureTriangleTransform<'a, B>>§flags: AccelerationStructureGeometryFlagsTrait Implementations§
Source§impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureTriangles<'a, B>
 
impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureTriangles<'a, B>
Source§fn clone(&self) -> AccelerationStructureTriangles<'a, B>
 
fn clone(&self) -> AccelerationStructureTriangles<'a, B>
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 moreAuto Trait Implementations§
impl<'a, B> Freeze for AccelerationStructureTriangles<'a, B>where
    B: ?Sized,
impl<'a, B> RefUnwindSafe for AccelerationStructureTriangles<'a, B>where
    B: RefUnwindSafe + ?Sized,
impl<'a, B> Send for AccelerationStructureTriangles<'a, B>
impl<'a, B> Sync for AccelerationStructureTriangles<'a, B>
impl<'a, B> Unpin for AccelerationStructureTriangles<'a, B>where
    B: ?Sized,
impl<'a, B> UnwindSafe for AccelerationStructureTriangles<'a, B>where
    B: RefUnwindSafe + ?Sized,
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