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§
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>)
Implementors§
impl QueueInterface for CoreQueue
Available on
wgpu_core
only.