oa::FnTexture::fromImage

Record conversion from a validated single semantic image to packed RGBA8. Every supported oa::Image layout and channel format is interpreted explicitly.

Function Documentation

oa::Result<Texture> oa::FnTexture::fromImage( oa::Engine & inEngine, const oa::Image & inImage )
Record conversion from a validated single semantic image to packed RGBA8. Every supported oa::Image layout and channel format is interpreted explicitly.

Parameters

inEngine
oa::Engine &

inImage
const oa::Image &

Returns

oa::Result<Texture>

The declared return value.