[llvm] [DirectX] add enum for PSV resource type/kind/flag. (PR #106227)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 11:40:36 PDT 2024


================
@@ -19,11 +19,11 @@ Parts:
       MaximumWaveLaneCount: 4294967295
       ResourceStride:       16
       Resources:
-        - Type:            1
+        - Type:            Sampler
           Space:           2
           LowerBound:      3
           UpperBound:      4
-        - Type:            128
+        - Type:            Invalid
----------------
bogner wrote:

Sorry if this is a dumb question, but I'm not very familiar with the YAML printer. Is this printing the enum value of `0` (ie, "Invalid") or is the value in memory `128` and anything outside of the enum range prints "Invalid"? If it's `0`, what part of this change caused the value to change?

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


More information about the llvm-commits mailing list