[llvm] [DirectX] adding support to read/write descriptor table data using obj2yaml/yaml2obj (PR #138315)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu May 22 09:48:53 PDT 2025


================
@@ -46,6 +46,18 @@ size_t RootSignatureDesc::getSize() const {
         Size += sizeof(dxbc::RTS0::v2::RootDescriptor);
 
       break;
+    case llvm::to_underlying(dxbc::RootParameterType::DescriptorTable):
+      const DescriptorTable &Table =
+          ParametersContainer.getDescriptorTable(I.Location);
+
+      // 4 bits for the number of ranges in table and
+      // 4 bits for the ranges offset
+      Size += 2 * sizeof(uint32_t);
----------------
bogner wrote:

bits/bytes, as in the other identical comment

https://github.com/llvm/llvm-project/pull/138315


More information about the llvm-commits mailing list