================
@@ -594,6 +599,25 @@ struct RootConstants {
     sys::swapByteOrder(Num32BitValues);
   }
 };
+struct RootDescriptor_V1_0 {
----------------
inbelic wrote:

Having poked a bit more in `DXContainer.h`, maybe it would be best to follow 
how it is done for `RuntimeInfo`? Defining a new namespace for each version and 
then having all later version inheret from the previous version. So something 
like:
```
namespace v0 {
struct RootDescriptor {
  uint32_t ShaderRegister;
  uint32_t RegisterSpace;
  
  void swapbytes() {...}
};
}

namespace v1 {
struct RootDescriptor : public v0::RootDescriptor {
  uint32_t Flags;
  void swapbytes() {...}
};
}
```

https://github.com/llvm/llvm-project/pull/136732
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to