Loading...
Searching...
No Matches
ComputeEncoder.hpp
1#pragma once
3
4#include <cstdint>
5
6class QRhi;
7class QRhiTexture;
8class QRhiBuffer;
9class QRhiCommandBuffer;
10class QRhiResourceUpdateBatch;
11
12namespace score::gfx
13{
14struct RenderState;
15
36{
37 virtual ~ComputeEncoder() = default;
38
39 virtual bool init(
40 QRhi& rhi, const RenderState& state, QRhiTexture* src, int width,
41 int height, QRhiBuffer* outputBuffer,
42 const QString& colorConversion = colorMatrixOut())
43 = 0;
44
45 virtual void exec(
46 QRhi& rhi, QRhiCommandBuffer& cb, QRhiResourceUpdateBatch* res)
47 = 0;
48
49 virtual void release() = 0;
50};
51
52} // namespace score::gfx
GPU shader generation for RGB->YUV color space conversion (output/encoding).
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:12
Base interface for compute-shader RGBA -> AJA-format encoders.
Definition ComputeEncoder.hpp:36
Global state associated to a rendering context.
Definition RenderState.hpp:37