[llvm] [DX] Support pipeline state masks (PR #66425)

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 19:56:44 PDT 2023


================
@@ -140,6 +159,22 @@ class PSVRuntimeInfo {
 
   const InfoStruct &getInfo() const { return BasicInfo; }
 
+  template <typename T> const T *getInfoAs() const {
+    if (const auto *P = std::get_if<dxbc::PSV::v2::RuntimeInfo>(&BasicInfo))
----------------
python3kgae wrote:

Why do we want to get a v0::RuntimeInfo ptr from a v2 object?
Because v0::RuntimeInfo::swapBytes() is not included in v2::RuntimeInfo::swapBytes()?

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


More information about the llvm-commits mailing list