summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-cpp.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-10-30 14:07:38 -0700
committerGitHub <noreply@github.com>2024-10-30 14:07:38 -0700
commit28f20f458c4f7f587556a1738d63b70e87c2b148 (patch)
treea3d4fbd77be026979fd5f9802dcbe01404e20396 /source/slang/slang-emit-cpp.cpp
parentfeec3cf4354524e2badb3e3165fdf2a17c24597e (diff)
Write only texture types. (#5454)
* Add support for write-only textures. * Fix capabilities. * Fix implementation. * Fix. * format code --------- Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com> Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
-rw-r--r--source/slang/slang-emit-cpp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp
index 63c7dd9a4..04d513e7a 100644
--- a/source/slang/slang-emit-cpp.cpp
+++ b/source/slang/slang-emit-cpp.cpp
@@ -130,6 +130,7 @@ SlangResult CPPSourceEmitter::_calcCPPTextureTypeName(
switch (texType->getAccess())
{
case SLANG_RESOURCE_ACCESS_READ: break;
+ case SLANG_RESOURCE_ACCESS_WRITE: outName << "RW"; break;
case SLANG_RESOURCE_ACCESS_READ_WRITE: outName << "RW"; break;
case SLANG_RESOURCE_ACCESS_RASTER_ORDERED: outName << "RasterizerOrdered"; break;
case SLANG_RESOURCE_ACCESS_APPEND: outName << "Append"; break;