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,
    },
}
Expand description

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

Variants§

§

Triangles

Fields

§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.

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

§

AABBs

Fields

§max_primitive_count: u32

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

Defines that geometry type is array of AABBs.

§

Instances

Fields

§max_primitive_count: u32

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

Defines that geometry type is array of instances of BLASes.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.