summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhi_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rhi/qrhi_p.h')
-rw-r--r--src/gui/rhi/qrhi_p.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h
index 3c7f9b6bc4..f3255eca5b 100644
--- a/src/gui/rhi/qrhi_p.h
+++ b/src/gui/rhi/qrhi_p.h
@@ -1488,7 +1488,8 @@ public:
enum Flag {
EnableProfiling = 1 << 0,
EnableDebugMarkers = 1 << 1,
- PreferSoftwareRenderer = 1 << 2
+ PreferSoftwareRenderer = 1 << 2,
+ EnablePipelineCacheDataSave = 1 << 3
};
Q_DECLARE_FLAGS(Flags, Flag)
@@ -1524,7 +1525,8 @@ public:
RenderToNonBaseMipLevel,
IntAttributes,
ScreenSpaceDerivatives,
- ReadBackAnyTextureFormat
+ ReadBackAnyTextureFormat,
+ PipelineCacheDataLoadSave
};
enum BeginFrameFlag {
@@ -1637,6 +1639,9 @@ public:
bool isDeviceLost() const;
+ QByteArray pipelineCacheData();
+ void setPipelineCacheData(const QByteArray &data);
+
protected:
QRhi();