void tracing for spot lights

This commit is contained in:
zomseffen 2025-01-14 16:01:18 +01:00
parent dd568a75e3
commit 4c4b8288d5
5 changed files with 55 additions and 81 deletions

View file

@ -457,7 +457,7 @@ impl App {
vk::MemoryMapFlags::empty(),
)?;
memcpy(self.scene_handler.rt_memory.as_ptr(), memory.cast(), 2103);
memcpy(self.scene_handler.rt_memory.as_ptr(), memory.cast(), self.scene_handler.rt_memory.len());
self.device.unmap_memory(self.data.storage_buffers_memory[image_index]);