Realm

oa::render::texture_from_rgba8_on

Upload one exact packed row-major RGBA8 host image as a Texture on a particular engine. Errors Returns the same errors as texture_from_rgba8.

FnRust public API

Function Documentation

pub fn texture_from_rgba8_on( engine: &Engine, rgba: &[u8], width: usize, height: usize ) -> Result<Texture>
Upload one exact packed row-major RGBA8 host image as a Texture on a particular engine. Errors Returns the same errors as texture_from_rgba8.