Trait gfx_texture::UpdateTexture[][src]

pub trait UpdateTexture<F>: TextureOp<F> + ImageSize {
    pub fn update<O, S>(
        &mut self,
        factory: &mut F,
        format: Format,
        memory: &[u8],
        offset: O,
        size: S
    ) -> Result<(), Self::Error>
    where
        S: Into<[u32; 2]>,
        O: Into<[u32; 2]>
; }

Implemented by textures for updating.

Required methods

pub fn update<O, S>(
    &mut self,
    factory: &mut F,
    format: Format,
    memory: &[u8],
    offset: O,
    size: S
) -> Result<(), Self::Error> where
    S: Into<[u32; 2]>,
    O: Into<[u32; 2]>, 
[src]

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.

Loading content...

Implementors

impl<F, R, C> UpdateTexture<TextureContext<F, R, C>> for Texture<R> where
    F: Factory<R>,
    R: Resources,
    C: CommandBuffer<R>, 
[src]

Loading content...