pub fn new(
        device_context: &VkDeviceContext,
        max_frames_in_flight: u32,
    ) -> Self {
        let (drop_tx, drop_rx) = crossbeam_channel::unbounded();

        let inner = DynCommandWriterAllocatorInner {
            max_frames_in_flight: max_frames_in_flight as u64,
            pending_writers: Default::default(),
            submitted_writers: Default::default(),
            unused_writers: Default::default(),
            current_frame_index: 0,
            device_context: device_context.clone(),
            drop_tx,
            drop_rx,
            next_writer_id: 0,
        };

        DynCommandWriterAllocator {
            inner: Arc::new(Mutex::new(inner)),
        }
    }
/// Create an allocator for DynCommandWriters.
Create an allocator for DynCommandWriters.
Create an allocator for DynCommandWriters .
pub fn new(
        device_context: &VkDeviceContext,
        max_frames_in_flight: u32,
    ) -> Self {
        let (drop_tx, drop_rx) = crossbeam_channel::unbounded();
        let inner = DynCommandWriterAllocatorInner {
            max_frames_in_flight: max_frames_in_flight as u64,
            pending_writers: Default::default(),
            submitted_writers: Default::default(),
            unused_writers: Default::default(),
            current_frame_index: 0,
            device_context: device_context.clone(),
            drop_tx,
            drop_rx,
            next_writer_id: 0,
        };
        DynCommandWriterAllocator {
            inner: Arc::new(Mutex::new(inner)),
        }
    }
pub fn new ( device_context : & VkDeviceContext , max_frames_in_flight : u32 , ) -> Self { let ( drop_tx , drop_rx ) = crossbeam_channel :: unbounded ( ) ; let inner = DynCommandWriterAllocatorInner { max_frames_in_flight : max_frames_in_flight as u64 , pending_writers : Default :: default ( ) , submitted_writers : Default :: default ( ) , unused_writers : Default :: default ( ) , current_frame_index : 0 , device_context : device_context . clone ( ) , drop_tx , drop_rx , next_writer_id : 0 , } ; DynCommandWriterAllocator { inner : Arc :: new ( Mutex :: new ( inner ) ) , } }
Create an allocator for DynCommandWriters.
Create an allocator for DynCommandWriters .
device_context
&VkDeviceContext
max_frames_in_flight
u32
device_context
&VkDeviceContext
max_frames_in_flight
u32