GPU: unbind vertex buffer slots for null view arrays

This commit is contained in:
fuzeofficial committed 2026-11-24 15:42:18 +09:00
1 parent d2a4bae1f4
commit 31ce30f169
2 files changed
+11 -1

No files matched your search

+6
View File
@@ -242,6 +242,12 @@ impl State {
}
}
pub(crate) fn clear_vertex_buffers(&mut self, start: u32, count: u32) {
for slot in self.vertex.iter_mut().skip(start as usize).take(count as usize) {
*slot = VertexView::default();
}
}
pub(crate) fn set_index_buffer(&mut self, view: Option<&IndexView>) {
self.index = view.copied().unwrap_or_default();
}