diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-10 11:53:15 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-11 10:59:05 +0200 |
commit | 8116df5331a8bc17b9173437150ace8d5defd2c0 (patch) | |
tree | 2815f862fece4b39e7a6d5551b68b73ff4abbd82 /src/gui/rhi/qrhi_p_p.h | |
parent | 755f24f153087eeafa332b36b4233ee7515c2352 (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.h | 3 |
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() { |