[clang] [llvm] [HLSL] Add Texture2DMS (PR #211972)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 09:52:54 PDT 2026


================
@@ -6885,14 +6885,18 @@ class HLSLAttributedResourceType : public Type, public llvm::FoldingSetNode {
     LLVM_PREFERRED_TYPE(bool)
     uint8_t IsMultiSampled : 1;
 
+    /// The N in Texture2DMS<T, N>; null for every other resource.
+    Expr *SampleCountExpr;
----------------
bogner wrote:

Do we still need `IsMultiSampled` if we have `SampleCountExpr`? Can we get away with inferring the boolean from the presence of the expression?

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


More information about the llvm-commits mailing list