Skip to main content

DynTexture

Trait DynTexture 

Source
pub trait DynTexture: DynResource + Debug { }

Trait Implementations§

Source§

impl Borrow<dyn DynTexture> for Texture

Available on gles only.
Source§

fn borrow(&self) -> &dyn DynTexture

Immutably borrows from an owned value. Read more
Source§

impl Borrow<dyn DynTexture> for Resource

Source§

fn borrow(&self) -> &dyn DynTexture

Immutably borrows from an owned value. Read more
Source§

impl Borrow<dyn DynTexture> for SurfaceTexture

Available on vulkan only.
Source§

fn borrow(&self) -> &dyn DynTexture

Immutably borrows from an owned value. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl DynTexture for Resource

Source§

impl DynTexture for wgpu_hal::gles::Texture

Available on gles only.
Source§

impl DynTexture for wgpu_hal::vulkan::Texture

Available on vulkan only.