pub fn create_and_fill_uniform_buffer_batch<T: Pod + Send + Sync>(
ctx: &RenderContext,
label: DebugLabel,
content: impl ExactSizeIterator<Item = T>,
) -> Vec<BindGroupEntry>
Expand description
Utility for fast & efficient creation of uniform buffers from a series of structs.
For subsequent frames, this will automatically not allocate any resources (thanks to our buffer pooling mechanism).
TODO(#1383): We could do this on a more complex stack allocator.