wgpu_hal

Trait Queue

Source
pub trait Queue<A: Api>: WasmNotSend + WasmNotSync {
    // Required methods
    unsafe fn submit(
        &mut self,
        command_buffers: &[&A::CommandBuffer],
        signal_fence: Option<(&mut A::Fence, FenceValue)>,
    ) -> Result<(), DeviceError>;
    unsafe fn present(
        &mut self,
        surface: &mut A::Surface,
        texture: A::SurfaceTexture,
    ) -> Result<(), SurfaceError>;
    unsafe fn get_timestamp_period(&self) -> f32;
}

Required Methods§

Source

unsafe fn submit( &mut self, command_buffers: &[&A::CommandBuffer], signal_fence: Option<(&mut A::Fence, FenceValue)>, ) -> 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.
Source

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

Source

unsafe fn get_timestamp_period(&self) -> f32

Implementors§

Source§

impl Queue<Api> for Context

Source§

impl Queue<Api> for wgpu_hal::gles::Queue

Source§

impl Queue<Api> for wgpu_hal::vulkan::Queue