Trait texture::UpdateTexture
[−]
[src]
pub trait UpdateTexture<F>: ImageSize + Sized {
type Error;
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]>;
}
Implemented by textures for updating.
Associated Types
Required Methods
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]>
[−]
Update the texture.
The offset
and size
arguments represent the position and dimensions of the sub-section
of the texture that is to be updated with the given memory
.
Implementors
impl<R, C> UpdateTexture<Encoder<R, C>> for Texture<R> where R: Resources, C: CommandBuffer<R>
impl<R, C> UpdateTexture<Encoder<R, C>> for Texture<R> where C: CommandBuffer<R>, R: Resources