From 8116df5331a8bc17b9173437150ace8d5defd2c0 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Sat, 10 Oct 2020 11:53:15 +0200 Subject: rhi: d3d: Save a few cycles in bindShaderResources Change-Id: Ib11ea33eb695d4599f4f040415d497aaf19cb15b Reviewed-by: Andy Nichols --- src/gui/rhi/qrhid3d11_p_p.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/rhi/qrhid3d11_p_p.h') 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; + bool vsubufsPresent = false; + bool fsubufsPresent = false; + bool csubufsPresent = false; + bool vssamplersPresent = false; + bool fssamplersPresent = false; + bool cssamplersPresent = false; + bool csUAVsPresent = false; + QRhiBatchedBindings vsubufs; QRhiBatchedBindings vsubuforigbindings; QRhiBatchedBindings vsubufoffsets; -- cgit v1.2.3