Loading...
Searching...
No Matches
score::gfx::ComputeEncoder Struct Referenceabstract
Base interface for compute-shader RGBA -> AJA-format encoders. More...
Inheritance diagram for score::gfx::ComputeEncoder:
Detailed Description
Base interface for compute-shader RGBA -> AJA-format encoders.
Unlike the fragment GPUVideoEncoder family which writes into textures (and is consumed by readback), these encoders write directly to a caller-owned QRhiBuffer (Storage). Designed for the AJA tier-3 path: the buffer is backed by a SHARED, CUDA-importable, AJA-DMA-locked GPU allocation, so the encoder's writes ARE the bytes AJA P2P-DMAs to the SDI card.
Concrete encoders: V210Compute, UYVYCompute, BGRACompute.
Lifecycle:
- init(rhi, state, src, w, h, outBuf, colorConv): create the compute pipeline + bind outBuf as the output SSBO.
- exec(rhi, cb, res): inside an offscreen frame, update the params UBO via res and dispatch the compute pass on cb.
- release(): free GPU resources.
Public Member Functions | |
| virtual bool | init (QRhi &rhi, const RenderState &state, QRhiTexture *src, int width, int height, QRhiBuffer *outputBuffer, const QString &colorConversion=colorMatrixOut())=0 |
| virtual void | exec (QRhi &rhi, QRhiCommandBuffer &cb, QRhiResourceUpdateBatch *res)=0 |
| virtual void | release ()=0 |
The documentation for this struct was generated from the following file: