Struct wgpu_hal::AccelerationStructureTriangles
source · 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: ?Sized> RefUnwindSafe for AccelerationStructureTriangles<'a, B>where
B: RefUnwindSafe,
impl<'a, B: ?Sized> Send for AccelerationStructureTriangles<'a, B>
impl<'a, B: ?Sized> Sync for AccelerationStructureTriangles<'a, B>
impl<'a, B: ?Sized> Unpin for AccelerationStructureTriangles<'a, B>
impl<'a, B: ?Sized> UnwindSafe for AccelerationStructureTriangles<'a, B>where
B: RefUnwindSafe,
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