wgpu::dispatch

Trait QueueInterface

source
pub trait QueueInterface: CommonTraits {
    // Required methods
    fn write_buffer(
        &self,
        buffer: &DispatchBuffer,
        offset: BufferAddress,
        data: &[u8],
    );
    fn create_staging_buffer(
        &self,
        size: BufferSize,
    ) -> Option<DispatchQueueWriteBuffer>;
    fn validate_write_buffer(
        &self,
        buffer: &DispatchBuffer,
        offset: BufferAddress,
        size: BufferSize,
    ) -> Option<()>;
    fn write_staging_buffer(
        &self,
        buffer: &DispatchBuffer,
        offset: BufferAddress,
        staging_buffer: &DispatchQueueWriteBuffer,
    );
    fn write_texture(
        &self,
        texture: TexelCopyTextureInfo<'_>,
        data: &[u8],
        data_layout: TexelCopyBufferLayout,
        size: Extent3d,
    );
    fn submit(
        &self,
        command_buffers: &mut dyn Iterator<Item = DispatchCommandBuffer>,
    ) -> u64;
    fn get_timestamp_period(&self) -> f32;
    fn on_submitted_work_done(
        &self,
        callback: Box<dyn FnOnce() + Send + 'static>,
    );
}

Required Methods§

source

fn write_buffer( &self, buffer: &DispatchBuffer, offset: BufferAddress, data: &[u8], )

source

fn create_staging_buffer( &self, size: BufferSize, ) -> Option<DispatchQueueWriteBuffer>

source

fn validate_write_buffer( &self, buffer: &DispatchBuffer, offset: BufferAddress, size: BufferSize, ) -> Option<()>

source

fn write_staging_buffer( &self, buffer: &DispatchBuffer, offset: BufferAddress, staging_buffer: &DispatchQueueWriteBuffer, )

source

fn write_texture( &self, texture: TexelCopyTextureInfo<'_>, data: &[u8], data_layout: TexelCopyBufferLayout, size: Extent3d, )

source

fn submit( &self, command_buffers: &mut dyn Iterator<Item = DispatchCommandBuffer>, ) -> u64

source

fn get_timestamp_period(&self) -> f32

source

fn on_submitted_work_done(&self, callback: Box<dyn FnOnce() + Send + 'static>)

Implementors§

source§

impl QueueInterface for CoreQueue

Available on wgpu_core only.