pub fn new(cx: &Context, desc: wgpu::BufferDescriptor<'static>) -> Self {
        GrowingBufferArena {
            buffers: vec![(Arc::new(cx.device.create_buffer(&desc)), 0)],
            desc,
        }
    }
/// Creates a new [GrowingBufferArena].
///
/// The arena will use `desc` to allocate buffers when it grows.
Creates a new [GrowingBufferArena].
The arena will use `desc` to allocate buffers when it grows.
Creates a new [ GrowingBufferArena ] . The arena will use ` desc ` to allocate buffers when it grows .
pub fn new(cx: &Context, desc: wgpu::BufferDescriptor<'static>) -> Self {
        GrowingBufferArena {
            buffers: vec![(Arc::new(cx.device.create_buffer(&desc)), 0)],
            desc,
        }
    }
pub fn new ( cx : & Context , desc : wgpu :: BufferDescriptor < ' static > ) -> Self { GrowingBufferArena { buffers : vec ! [ ( Arc new ( cx device create_buffer ( desc ) ) 0 ) ] , desc , } }
Creates a new [GrowingBufferArena].
Creates a new [ GrowingBufferArena ] .
cx
&Context
desc
wgpu::BufferDescriptor<'static>
cx
&Context
desc
wgpu::BufferDescriptor<'static>