pub struct WgpuTexture { /* private fields */ }Expand description
Safe producer handle for an engine-owned wgpu texture ring.
Implementations§
Source§impl WgpuTexture
impl WgpuTexture
Sourcepub fn texture_id(&self) -> i64
pub fn texture_id(&self) -> i64
Identifier consumed by Flutter’s Dart Texture widget.
Sourcepub fn try_next_frame(&self) -> Result<WgpuTextureFrame>
pub fn try_next_frame(&self) -> Result<WgpuTextureFrame>
Attempts to reserve an available ring slot without blocking.
Sourcepub async fn next_frame(&self) -> Result<WgpuTextureFrame>
pub async fn next_frame(&self) -> Result<WgpuTextureFrame>
Asynchronously waits until a ring slot can be reserved. Dropping the future cancels the wait without reserving a slot.
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuTexture
impl !UnwindSafe for WgpuTexture
impl Freeze for WgpuTexture
impl Send for WgpuTexture
impl Sync for WgpuTexture
impl Unpin for WgpuTexture
impl UnsafeUnpin for WgpuTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more