buffers: verbose--

This commit is contained in:
Victoria Fischer 2024-12-02 22:53:51 +01:00
parent e2e608048d
commit 16c0c9524d

View File

@ -154,15 +154,12 @@ impl ShaderChain {
}
pub fn commit(&mut self) {
log::info!("commit");
let mut queue: Vec<SurfaceUpdate> = {
let mut updates = self.updates.pending.lock().unwrap();
std::mem::take(updates.as_mut())
};
log::info!("queue={:?}", queue);
for update in queue.iter_mut() {
let target_slot = &mut self.bindings[update.slot];
log::info!("orig={:?} update={:?}", target_slot, update);
if let Some(shader) = update.shader.take() {
target_slot.shader = shader;
}