oa::FnTexture::fromPixels

Synchronously upload one exact packed-RGBA8 host image.

Function Documentation

oa::Result<Texture> oa::FnTexture::fromPixels( oa::Engine & inEngine, oa::Span<const oa::U8> inRgba, oa::I32 inWidth, oa::I32 inHeight )
Synchronously upload one exact packed-RGBA8 host image.

Parameters

inEngine
oa::Engine &

inRgba
oa::Span<const oa::U8>

inWidth
oa::I32

inHeight
oa::I32

Returns

oa::Result<Texture>

The declared return value.