perf(core): Inline small bind group descriptor storage (#10188)

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
This commit is contained in:
Patrik NilssonandConnor Fitzgerald authored and GitHub committed 2026-09-24 05:54:36 +00:00
1 parent 0ea906f074
commit 3ea8d8c6ef
1 file changed
+6 -7
+6 -7
View File
@@ -3751,7 +3751,6 @@ impl Device {
}
}
// TODO: arrayvec/smallvec, or re-use allocations
// Record binding info for dynamic offset validation
let mut dynamic_binding_info = Vec::new();
// Map of binding -> shader reflected size
@@ -3763,13 +3762,13 @@ impl Device {
let mut buffer_init_actions = Vec::new();
let mut texture_init_actions = Vec::new();
let mut hal_entries = Vec::with_capacity(desc.entries.len());
let mut hal_buffers = Vec::new();
let mut hal_samplers = Vec::new();
let mut hal_textures = Vec::new();
let mut hal_tlas_s = Vec::new();
let mut hal_external_textures = Vec::new();
let snatch_guard = self.snatchable_lock.read();
let mut hal_entries = SmallVec::<[_; 4]>::with_capacity(desc.entries.len());
let mut hal_buffers = SmallVec::<[_; 4]>::new();
let mut hal_samplers = SmallVec::<[_; 4]>::new();
let mut hal_textures = SmallVec::<[_; 8]>::new();
let mut hal_tlas_s = SmallVec::<[_; 1]>::new();
let mut hal_external_textures = SmallVec::<[_; 1]>::new();
for entry in desc.entries.iter() {
let binding = entry.binding;
// Find the corresponding declaration in the layout