LfQueueExt

Trait LfQueueExt 

Source
pub trait LfQueueExt: SealedQueue {
    // Required method
    fn write_buffer_padded(
        &self,
        buffer: &Buffer,
        offset: BufferAddress,
        data: Vec<u8>,
    );
}
Expand description

Extensions to wgpu::Queue.

Required Methods§

Source

fn write_buffer_padded( &self, buffer: &Buffer, offset: BufferAddress, data: Vec<u8>, )

Writes the given data to the given buffer using wgpu::Queue::write_buffer, but pads the data to the nearest multiple of the alignment required for buffer writing.

§Panics

Panics if the padded data would overrun the given buffer.

Implementations on Foreign Types§

Source§

impl LfQueueExt for Queue

Source§

fn write_buffer_padded( &self, buffer: &Buffer, offset: BufferAddress, data: Vec<u8>, )

Implementors§