Enum sierra::AccelerationStructureGeometryInfo[][src]

pub enum AccelerationStructureGeometryInfo {
    Triangles {
        max_primitive_count: u32,
        index_type: Option<IndexType>,
        max_vertex_count: u32,
        vertex_format: Format,
        allows_transforms: bool,
    },
    AABBs {
        max_primitive_count: u32,
    },
    Instances {
        max_primitive_count: u32,
    },
}

Specifies the shape of geometries that will be built into an acceleration structure.

Variants

Triangles

Defines that geometry type is triangle mesh and its data shape.

Fields of Triangles

max_primitive_count: u32

Maximum number of primitives that can be built into an acceleration structure geometry.

index_type: Option<IndexType>

Type of indices if any.

max_vertex_count: u32

Maximum number of vertex count.

vertex_format: Format

Format of each vertex.

allows_transforms: bool

Whether mesh allows to be transformed.

AABBs

Defines that geometry type is array of AABBs.

Fields of AABBs

max_primitive_count: u32

Maximum number of primitives that can be built into an acceleration structure geometry.

Instances

Defines that geometry type is array of instances of BLASes.

Fields of Instances

max_primitive_count: u32

Maximum number of primitives that can be built into an acceleration structure geometry.

Trait Implementations

impl Clone for AccelerationStructureGeometryInfo[src]

impl Copy for AccelerationStructureGeometryInfo[src]

impl Debug for AccelerationStructureGeometryInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.