summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-10 10:52:30 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-10 10:52:30 -0700
commitd6d49eac224a0d03c8f941deb59ee1520ff0ab5e (patch)
treee220ec5f54e5a5970a2307a87891a301d35f1546 /source/slang/emit.cpp
parentb2fb0f7134de4e0b1a0db685eb1ae3c0678a33c5 (diff)
Add support for `imageBuffer`
This was mostly just a missing `typedef` in the Slang standard library code. This should also cover `textureBuffer` and `samplerBuffer`.
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 1630f1c79..2791a436e 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -776,6 +776,7 @@ struct EmitVisitor
case TextureType::Shape2D: Emit("2D"); break;
case TextureType::Shape3D: Emit("3D"); break;
case TextureType::ShapeCube: Emit("Cube"); break;
+ case TextureType::ShapeBuffer: Emit("Buffer"); break;
default:
assert(!"unreachable");
break;