albedo-engine / albedo

Efficient and easy to use rendering framework for real-time visualization based on WebGPU
MIT License
66 stars 2 forks source link

albedo_bvh: Accept slices in addition to Mesh trait #22

Closed DavidPeicho closed 11 months ago

DavidPeicho commented 1 year ago

It's unlikely that someone has a struct with:

struct Vertex {
    position_z: f32,
    position_y: f32,
    position_x: f32,
    ....
}

In general, most people will have arrays / strided arrays. It would be nice if the crate could support both use case:

DavidPeicho commented 11 months ago

Available on main.