Skip to main content

Queue

Struct Queue 

Source
pub struct Queue { /* private fields */ }
Available on gles only.

Trait Implementations§

Source§

impl Debug for Queue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Queue

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl DynResource for Queue

Source§

fn as_any(&self) -> &dyn Any

Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Source§

impl Queue for Queue

Source§

type A = Api

Source§

unsafe fn submit( &self, command_buffers: &[&CommandBuffer], _surface_textures: &[&Texture], (signal_fence, signal_value): (&Fence, FenceValue), ) -> Result<(), DeviceError>

Submit command_buffers for execution on GPU. Read more
Source§

unsafe fn present( &self, surface: &Surface, texture: Texture, damage_rects: &[Rect<u32>], ) -> Result<(), SurfaceError>

Present a surface texture to the screen. Read more
Source§

unsafe fn get_timestamp_period(&self) -> f32

Source§

unsafe fn wait_for_idle(&self) -> Result<(), DeviceError>

Block until all previously submitted work on this queue has completed, including any pending presentations. Read more
Source§

impl Send for Queue

Available on send_sync only.
Source§

impl Sync for Queue

Available on send_sync only.

Auto Trait Implementations§

§

impl !Freeze for Queue

§

impl !RefUnwindSafe for Queue

§

impl !UnwindSafe for Queue

§

impl Forget for Queue

§

impl Move for Queue

§

impl Unpin for Queue
where Arc<AdapterShared>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, NativeFramebuffer: Unpin, NativeProgram: Unpin, NativeUniformLocation: Unpin, NativeBuffer: Unpin, Align1<u8>: Unpin, *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Queue
where *const ArcInner<AdapterShared> is !null: UnsafeUnpin, PhantomData<ArcInner<AdapterShared>>: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, NativeFramebuffer: UnsafeUnpin, NativeProgram: UnsafeUnpin, NativeUniformLocation: UnsafeUnpin, NativeBuffer: UnsafeUnpin, Align1<u8>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u64>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q> DynQueue for Q
where Q: Queue + DynResource,

Source§

unsafe fn submit( &self, command_buffers: &[&(dyn DynCommandBuffer + 'static)], surface_textures: &[&(dyn DynSurfaceTexture + 'static)], signal_fence: (&(dyn DynFence + 'static), u64), ) -> Result<(), DeviceError>

Dynamic version of Queue::submit
Source§

unsafe fn present( &self, surface: &(dyn DynSurface + 'static), texture: Box<dyn DynSurfaceTexture>, damage_rects: &[Rect<u32>], ) -> Result<(), SurfaceError>

Dynamic version of Queue::present
Source§

unsafe fn get_timestamp_period(&self) -> f32

Dynamic version of Queue::get_timestamp_period
Source§

unsafe fn wait_for_idle(&self) -> Result<(), DeviceError>

Dynamic version of Queue::wait_for_idle
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,