update to latest solari
This commit is contained in:
@@ -24,7 +24,6 @@ use super::{
|
||||
MeshBlasManager, RaytracingSceneBindings, TapeBlasManager, bind_group::BindGroupCacheState,
|
||||
instances::InstanceState, tlas_build,
|
||||
};
|
||||
use crate::scene::binder::instances::Object;
|
||||
|
||||
/// Compute pipeline that writes per-slot transforms and BLAS addresses into
|
||||
/// TLAS descriptors.
|
||||
@@ -531,13 +530,13 @@ fn build_tlas_through_wgpu_core(
|
||||
let capacity = tlas.get().len();
|
||||
tlas[0..capacity].iter_mut().for_each(|entry| *entry = None);
|
||||
|
||||
for (slot, object, transform) in bindings.instances.drawable() {
|
||||
for (slot, blas_key, transform) in bindings.instances.drawable() {
|
||||
// A mesh can lose its acceleration structure after the instance
|
||||
// resolved against it, which leaves the slot with
|
||||
// nothing to point at for a frame
|
||||
let Some(blas) = (match object {
|
||||
Object::Mesh(mesh) => mesh_blas_manager.get(&mesh),
|
||||
Object::Tape(tape) => tape_blas_manager.get(&tape),
|
||||
let Some(blas) = (match blas_key {
|
||||
super::instances::BlasKey::Mesh(blas_key) => mesh_blas_manager.get(&blas_key),
|
||||
super::instances::BlasKey::Tape(blas_key) => tape_blas_manager.get(&blas_key),
|
||||
}) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user