summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhivulkan.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-09-10 14:09:41 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-09-12 10:40:16 +0000
commit0616e14de0bf867bc2730b2b07005fbcbb234bb4 (patch)
treee7b0b86d78289279216c36aebee5a7b3bf1a49c3 /src/gui/rhi/qrhivulkan.cpp
parentd39d1a9e67affb3fd44fdd9ec71a50282a6fed1f (diff)
rhi: Better handling of device loss
Starting with D3D11. The other backends will follow later. Change-Id: I4f165c9f1743df0fb00bdce1e898917575bf5f6e Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhivulkan.cpp')
-rw-r--r--src/gui/rhi/qrhivulkan.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp
index c4f298dafb..5dd4b12329 100644
--- a/src/gui/rhi/qrhivulkan.cpp
+++ b/src/gui/rhi/qrhivulkan.cpp
@@ -3750,6 +3750,11 @@ void QRhiVulkan::releaseCachedResources()
// nothing to do here
}
+bool QRhiVulkan::isDeviceLost() const
+{
+ return false;
+}
+
QRhiRenderBuffer *QRhiVulkan::createRenderBuffer(QRhiRenderBuffer::Type type, const QSize &pixelSize,
int sampleCount, QRhiRenderBuffer::Flags flags)
{