Loading...
Searching...
No Matches
PreviewTap.hpp
1#pragma once
2#include <QSize>
3
4#include <atomic>
5#include <cstdint>
6#include <memory>
7
8struct QRhiReadbackResult;
9
10namespace score::gfx
11{
28{
30 int port{};
32 QSize size{256, 256};
33 std::shared_ptr<QRhiReadbackResult> readback;
34
39 std::atomic_bool wanted{true};
40
43 bool readable{true};
45 bool active{};
46
48 int64_t frames{};
49};
50}
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:11
A preview of what a node outputs, read back by a render list that already renders the node.
Definition PreviewTap.hpp:28
bool readable
Definition PreviewTap.hpp:43
bool active
Read back by a render list: only then does it write readback.
Definition PreviewTap.hpp:45
QSize size
The largest the image may be; it keeps the aspect of the texture.
Definition PreviewTap.hpp:32
int port
Index of the output port of the producer.
Definition PreviewTap.hpp:30
std::atomic_bool wanted
Definition PreviewTap.hpp:39
int64_t frames
Frames read back, for tests.
Definition PreviewTap.hpp:48