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

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.

Show fields

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.

Show fields

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.

Show fields

Fields of Instances

max_primitive_count: u32

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

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.