pub struct WgpuTextureFrame { /* private fields */ }Expand description
Exclusive reservation of one engine-owned texture-ring slot.
Implementations§
Source§impl WgpuTextureFrame
impl WgpuTextureFrame
Sourcepub fn render(
&mut self,
task: impl FnOnce(&Device, &mut CommandEncoder, &TextureView) + Send + 'static,
) -> Result<()>
pub fn render( &mut self, task: impl FnOnce(&Device, &mut CommandEncoder, &TextureView) + Send + 'static, ) -> Result<()>
Records commands into this frame. A frame may be recorded once.
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuTextureFrame
impl !UnwindSafe for WgpuTextureFrame
impl Freeze for WgpuTextureFrame
impl Send for WgpuTextureFrame
impl Sync for WgpuTextureFrame
impl Unpin for WgpuTextureFrame
impl UnsafeUnpin for WgpuTextureFrame
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