From 28f20f458c4f7f587556a1738d63b70e87c2b148 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 30 Oct 2024 14:07:38 -0700 Subject: Write only texture types. (#5454) * Add support for write-only textures. * Fix capabilities. * Fix implementation. * Fix. * format code --------- Co-authored-by: Ellie Hermaszewska Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/slang/slang.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 01efcb11b..d6e57e6f3 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -1984,7 +1984,9 @@ CapabilitySet TargetRequest::getTargetCaps() case CodeGenTarget::MetalLib: case CodeGenTarget::MetalLibAssembly: atoms.add(CapabilityName::metal); break; - case CodeGenTarget::WGSL: atoms.add(CapabilityName::wgsl); break; + case CodeGenTarget::WGSLSPIRV: + case CodeGenTarget::WGSLSPIRVAssembly: + case CodeGenTarget::WGSL: atoms.add(CapabilityName::wgsl); break; default: break; } -- cgit v1.2.3