Fix broken non-buffer_labels build

This commit is contained in:
Raph Levien 2023-01-25 06:33:38 -08:00
parent 418256ffd1
commit 3b766d9969

View file

@ -717,6 +717,7 @@ impl ResourcePool {
let props = BufferProperties { let props = BufferProperties {
size: rounded_size, size: rounded_size,
usages: usage, usages: usage,
#[cfg(feature = "buffer_labels")]
name: name, name: name,
}; };
if let Some(buf_vec) = self.bufs.get_mut(&props) { if let Some(buf_vec) = self.bufs.get_mut(&props) {