TransferEncoder

Trait TransferEncoder 

Source
pub trait TransferEncoder {
    type BufferPiece: Send + Sync + Clone + Copy + Debug;
    type TexturePiece: Send + Sync + Clone + Copy + Debug;

    // Required methods
    fn fill_buffer(&mut self, dst: Self::BufferPiece, size: u64, value: u8);
    fn copy_buffer_to_buffer(
        &mut self,
        src: Self::BufferPiece,
        dst: Self::BufferPiece,
        size: u64,
    );
    fn copy_texture_to_texture(
        &mut self,
        src: Self::TexturePiece,
        dst: Self::TexturePiece,
        size: Extent,
    );
    fn copy_buffer_to_texture(
        &mut self,
        src: Self::BufferPiece,
        bytes_per_row: u32,
        dst: Self::TexturePiece,
        size: Extent,
    );
    fn copy_texture_to_buffer(
        &mut self,
        src: Self::TexturePiece,
        dst: Self::BufferPiece,
        bytes_per_row: u32,
        size: Extent,
    );
}

Required Associated Types§

Required Methods§

Source

fn fill_buffer(&mut self, dst: Self::BufferPiece, size: u64, value: u8)

Source

fn copy_buffer_to_buffer( &mut self, src: Self::BufferPiece, dst: Self::BufferPiece, size: u64, )

Source

fn copy_texture_to_texture( &mut self, src: Self::TexturePiece, dst: Self::TexturePiece, size: Extent, )

Source

fn copy_buffer_to_texture( &mut self, src: Self::BufferPiece, bytes_per_row: u32, dst: Self::TexturePiece, size: Extent, )

Source

fn copy_texture_to_buffer( &mut self, src: Self::TexturePiece, dst: Self::BufferPiece, bytes_per_row: u32, size: Extent, )

Implementors§