diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-07-07 11:02:58 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-07-07 17:53:23 +0200 |
commit | cd3a6fa41497ba6f3dac123536d22b88c61c17a2 (patch) | |
tree | 94774096bd0c5f380d334270deae59f34fbc8fb2 /src/gui/rhi/qrhid3d11.cpp | |
parent | 6619c9408778b8607948e46079ddb369f750214f (diff) |
rhi: Fix up the instancing step rate type
This is a UINT/uint32_t/GLuint/NSUInteger in all APIs (with Metal
being special due to being 64-bit in 64-bit apps whereas all others
are 32-bit always, at least on 64-bit Windows)
As the stride is already an uint32, follow suit for the step rate.
There was no reason to have this as int in the first place.
As an added bonus, some casts, that were previously needed when
mapping to the underlying API reality, can now be removed.
Change-Id: I8e0eef037bd795b637578dfc3e59dc2efaa5976c
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhid3d11.cpp')
-rw-r--r-- | src/gui/rhi/qrhid3d11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp index fddef52cee..4a5c909392 100644 --- a/src/gui/rhi/qrhid3d11.cpp +++ b/src/gui/rhi/qrhid3d11.cpp @@ -4425,7 +4425,7 @@ bool QD3D11GraphicsPipeline::create() const QRhiVertexInputBinding *inputBinding = m_vertexInputLayout.bindingAt(it->binding()); if (inputBinding->classification() == QRhiVertexInputBinding::PerInstance) { desc.InputSlotClass = D3D11_INPUT_PER_INSTANCE_DATA; - desc.InstanceDataStepRate = UINT(inputBinding->instanceStepRate()); + desc.InstanceDataStepRate = inputBinding->instanceStepRate(); } else { desc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; } |