summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhid3d11_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/qrhid3d11_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/qrhid3d11_p_p.h')
-rw-r--r--src/gui/rhi/qrhid3d11_p_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhid3d11_p_p.h b/src/gui/rhi/qrhid3d11_p_p.h
index 7f5ec28571..6de899310c 100644
--- a/src/gui/rhi/qrhid3d11_p_p.h
+++ b/src/gui/rhi/qrhid3d11_p_p.h
@@ -240,6 +240,14 @@ struct QD3D11ShaderResourceBindings : public QRhiShaderResourceBindings
};
QVarLengthArray<BoundResourceData, 8> boundResourceData;
+ bool vsubufsPresent = false;
+ bool fsubufsPresent = false;
+ bool csubufsPresent = false;
+ bool vssamplersPresent = false;
+ bool fssamplersPresent = false;
+ bool cssamplersPresent = false;
+ bool csUAVsPresent = false;
+
QRhiBatchedBindings<ID3D11Buffer *> vsubufs;
QRhiBatchedBindings<UINT> vsubuforigbindings;
QRhiBatchedBindings<UINT> vsubufoffsets;