[llvm] [DirectX] Fix order of `v2::DescriptorRange` (PR #145555)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 11:11:39 PDT 2025
================
@@ -212,9 +207,7 @@ struct DescriptorTableView : RootParameterView {
support::endian::read<uint32_t, llvm::endianness::little>(Current);
Current += sizeof(uint32_t);
- size_t RangeSize = sizeof(dxbc::RTS0::v1::DescriptorRange);
- if (Version > 1)
- RangeSize = sizeof(dxbc::RTS0::v2::DescriptorRange);
+ size_t RangeSize = sizeof(T);
Table.Ranges.Stride = RangeSize;
----------------
bogner wrote:
This shouldn't be necessary any more - I believe `ViewArray` sets the Stride correctly
https://github.com/llvm/llvm-project/pull/145555
More information about the llvm-commits
mailing list