2#include <QOffscreenSurface>
3#include <QtGui/private/qrhi_p.h>
5#include <score_plugin_gfx_export.h>
9#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
10using QRhiBufferReadbackResult = QRhiReadbackResult;
13class QOffscreenSurface;
45 QRhiRenderPassDescriptor* renderPassDescriptor{};
46 std::weak_ptr<RenderList> renderer{};
48 QOffscreenSurface* surface{};
49 std::weak_ptr<score::gfx::Window>
54 QRhiTexture::Format renderFormat{QRhiTexture::RGBA8};
56 QShaderVersion version{};
58#if QT_VERSION >= QT_VERSION_CHECK(6, 12, 0)
61 bool drawIndirect{
false};
62 bool drawIndirectMulti{
false};
67 std::function<void()> customDeviceCleanup;
77 if(customDeviceCleanup)
79 customDeviceCleanup();
80 customDeviceCleanup =
nullptr;
88SCORE_PLUGIN_GFX_EXPORT
89std::shared_ptr<RenderState>
90createRenderState(
GraphicsApi graphicsApi, QSize sz, QWindow* window);
92static const constexpr int32_t invalid_node_index = -1;
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:12
GraphicsApi
Available graphics APIs to use.
Definition RenderState.hpp:22
Global state associated to a rendering context.
Definition RenderState.hpp:37