diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-emit-metal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-emit-metal.cpp b/source/slang/slang-emit-metal.cpp index a2e339942..9232fc95d 100644 --- a/source/slang/slang-emit-metal.cpp +++ b/source/slang/slang-emit-metal.cpp @@ -138,9 +138,9 @@ void MetalSourceEmitter::_emitHLSLTextureType(IRTextureTypeBase* texType) { case SLANG_RESOURCE_ACCESS_READ: { - // Metal does not support access::sample for texture buffers, so we need to emit - // access::read instead. - if (texType->GetBaseShape() == SLANG_TEXTURE_BUFFER) + // Metal does not support access::sample for texture buffers and multisampled textures, + // so we need to emit access::read instead. + if (texType->GetBaseShape() == SLANG_TEXTURE_BUFFER || texType->isMultisample()) m_writer->emit("access::read"); else m_writer->emit("access::sample"); |
