pub struct BlasTriangleGeometry<'a> {
    pub size: &'a BlasTriangleGeometrySizeDescriptor,
    pub vertex_buffer: &'a Buffer,
    pub first_vertex: u32,
    pub vertex_stride: BufferAddress,
    pub index_buffer: Option<&'a Buffer>,
    pub index_buffer_offset: Option<BufferAddress>,
    pub transform_buffer: Option<&'a Buffer>,
    pub transform_buffer_offset: Option<BufferAddress>,
}
Expand description

Definition for a triangle geometry for a Bottom Level Acceleration Structure (BLAS).

The size must match the rest of the structures fields, otherwise the build will fail. (e.g. if index count is present in the size, the index buffer must be present as well.)

Fields§

§size: &'a BlasTriangleGeometrySizeDescriptor

Sub descriptor for the size defining attributes of a triangle geometry.

§vertex_buffer: &'a Buffer

Vertex buffer.

§first_vertex: u32

Offset into the vertex buffer as a factor of the vertex stride.

§vertex_stride: BufferAddress

Vertex stride.

§index_buffer: Option<&'a Buffer>

Index buffer (optional).

§index_buffer_offset: Option<BufferAddress>

Index buffer offset in bytes (optional, required if index buffer is present).

§transform_buffer: Option<&'a Buffer>

Transform buffer containing 3x4 (rows x columns, row major) affine transform matrices [f32; 12] (optional).

§transform_buffer_offset: Option<BufferAddress>

Transform buffer offset in bytes (optional, required if transform buffer is present).

Trait Implementations§

source§

impl<'a> Debug for BlasTriangleGeometry<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T

§

impl<T> WasmNotSync for T
where T: Sync,