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

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 23:38:06 PDT 2026


================
@@ -71,15 +71,30 @@ llvm::Type *DirectXTargetCodeGenInfo::getHLSLType(
         ResAttrs.ResourceDimension != llvm::dxil::ResourceDimension::Unknown;
     assert((!IsRawBuffer || !IsTexture) && "A resource cannot be both a raw "
                                            "buffer and a texture.");
+    bool IsMultiSampledTexture = IsTexture && ResAttrs.IsMultiSampled;
     llvm::StringRef TypeName = "dx.TypedBuffer";
     if (IsRawBuffer)
       TypeName = "dx.RawBuffer";
+    else if (IsMultiSampledTexture)
+      TypeName = "dx.MSTexture";
----------------
bogner wrote:

Fair enough - I missed that when I looked back at the document.

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


More information about the llvm-commits mailing list