Spatial texture writing works
This commit is contained in:
@@ -745,7 +745,7 @@ impl InstanceState {
|
||||
return false;
|
||||
}
|
||||
|
||||
let spatial_texture_key = spatial_texture.id();
|
||||
let spatial_texture_key = spatial_texture.0.id();
|
||||
let spatial_capacity = MAX_SPATIAL_TEXTURE_COUNT.get();
|
||||
if !self
|
||||
.spatial_textures
|
||||
@@ -774,13 +774,7 @@ impl InstanceState {
|
||||
let spatial_texture_id = self
|
||||
.spatial_textures
|
||||
.acquire(spatial_texture_key, spatial_capacity, || {
|
||||
spatial_texture.create_view(&TextureViewDescriptor {
|
||||
label: Some(&format!(
|
||||
"Tape {} slot {} spatial texture view",
|
||||
instance.tape, instance.slot
|
||||
)),
|
||||
..Default::default()
|
||||
})
|
||||
spatial_texture.1.clone()
|
||||
})
|
||||
.expect("spatial vslab binding array had room but handed out no slot");
|
||||
instance.buffers = Some((aabb_buffer_key, metadata_buffer_key, spatial_texture_key));
|
||||
|
||||
Reference in New Issue
Block a user