oa::FnVideo::fromTexture

Wrap a buffer- or image-backed render target in the common video-frame contract. The texture remains producer-owned; image readiness can be supplied without a host wait.

Function Documentation

oa::Result<VideoFrame> oa::FnVideo::fromTexture( const oa::Texture & inTexture, oa::U64 inPts = 0ULL, oa::Event inReady = = {} )
Wrap a buffer- or image-backed render target in the common video-frame contract. The texture remains producer-owned; image readiness can be supplied without a host wait.

Parameters

inTexture
const oa::Texture &

inPts
oa::U64

Default: 0ULL

inReady
oa::Event

Default: = {}

Returns

oa::Result<VideoFrame>

The declared return value.