pub struct GpuTextures { /* private fields */ }Expand description
GPU texture creation capability exposed by the plugin registrar.
Implementations§
Source§impl GpuTextures
impl GpuTextures
Sourcepub fn create_texture(
&self,
descriptor: TextureDescriptor,
) -> Result<WgpuTexture>
pub fn create_texture( &self, descriptor: TextureDescriptor, ) -> Result<WgpuTexture>
Creates a texture whose storage and synchronization are owned by the
shell. The returned ID can be passed directly to Dart’s Texture widget.
Sourcepub fn create_pixel_buffer_texture(
&self,
descriptor: TextureDescriptor,
) -> Result<PixelBufferTexture>
pub fn create_pixel_buffer_texture( &self, descriptor: TextureDescriptor, ) -> Result<PixelBufferTexture>
Creates a CPU-produced texture. Producers write directly into reusable shell-owned buffers, avoiding a plugin-to-shell pixel copy.
Trait Implementations§
Source§impl Clone for GpuTextures
impl Clone for GpuTextures
Source§fn clone(&self) -> GpuTextures
fn clone(&self) -> GpuTextures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GpuTextures
impl !UnwindSafe for GpuTextures
impl Freeze for GpuTextures
impl Send for GpuTextures
impl Sync for GpuTextures
impl Unpin for GpuTextures
impl UnsafeUnpin for GpuTextures
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