summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhi_p_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-10-10 11:53:15 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-10-11 10:59:05 +0200
commit8116df5331a8bc17b9173437150ace8d5defd2c0 (patch)
tree2815f862fece4b39e7a6d5551b68b73ff4abbd82 /src/gui/rhi/qrhi_p_p.h
parent755f24f153087eeafa332b36b4233ee7515c2352 (diff)
rhi: d3d: Save a few cycles in bindShaderResources
Change-Id: Ib11ea33eb695d4599f4f040415d497aaf19cb15b Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi_p_p.h')
-rw-r--r--src/gui/rhi/qrhi_p_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhi_p_p.h b/src/gui/rhi/qrhi_p_p.h
index 862d68f5a5..491f0c6f26 100644
--- a/src/gui/rhi/qrhi_p_p.h
+++ b/src/gui/rhi/qrhi_p_p.h
@@ -517,9 +517,10 @@ struct QRhiBatchedBindings
curBinding = binding;
}
- void finish() {
+ bool finish() {
if (!curBatch.resources.isEmpty())
batches.append(curBatch);
+ return !batches.isEmpty();
}
void clear() {