pub trait UpdateTexture<F>:
Sized
+ TextureOp<F>
+ ImageSize {
// Required method
fn update<O, S>(
&mut self,
factory: &mut F,
format: Format,
memory: &[u8],
offset: O,
size: S,
) -> Result<(), Self::Error>
where O: Into<[u32; 2]>,
S: Into<[u32; 2]>;
}
Expand description
Implemented by textures for updating.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.