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 attributestransform
- 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: AccelerationStructureGeometryFlags
Trait Implementations§
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)