================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits