Trait iced::widget::shader::wgpu::hal::Queue

pub trait Queue<A>: WasmNotSendSync
where A: Api,
{ // Required methods unsafe fn submit( &self, command_buffers: &[&<A as Api>::CommandBuffer], signal_fence: Option<(&mut <A as Api>::Fence, u64)> ) -> Result<(), DeviceError>; unsafe fn present( &self, surface: &<A as Api>::Surface, texture: <A as Api>::SurfaceTexture ) -> Result<(), SurfaceError>; unsafe fn get_timestamp_period(&self) -> f32; }
Available on crate feature wgpu only.

Required Methods§

unsafe fn submit( &self, command_buffers: &[&<A as Api>::CommandBuffer], signal_fence: Option<(&mut <A as Api>::Fence, u64)> ) -> Result<(), DeviceError>

Submits the command buffers for execution on GPU.

Valid usage:

  • all of the command buffers were created from command pools that are associated with this queue.
  • all of the command buffers had CommadBuffer::finish() called.

unsafe fn present( &self, surface: &<A as Api>::Surface, texture: <A as Api>::SurfaceTexture ) -> Result<(), SurfaceError>

unsafe fn get_timestamp_period(&self) -> f32

Implementors§

§

impl Queue<Api> for Context

§

impl Queue<Api> for iced::widget::shader::wgpu::hal::gles::Queue

§

impl Queue<Api> for iced::widget::shader::wgpu::hal::vulkan::Queue