summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-stdlib.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/slang-stdlib.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/slang-stdlib.cpp')
-rw-r--r--source/slang/slang-stdlib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp
index 23d66201a..9d6f812cd 100644
--- a/source/slang/slang-stdlib.cpp
+++ b/source/slang/slang-stdlib.cpp
@@ -1914,6 +1914,7 @@ namespace Slang
{ "2D", TextureType::Shape2D, 2 },
{ "3D", TextureType::Shape3D, 3 },
{ "Cube", TextureType::ShapeCube, 3 },
+ { "Buffer", TextureType::ShapeBuffer, 1 },
};
static const int kBaseTextureTypeCount = sizeof(kBaseTextureTypes) / sizeof(kBaseTextureTypes[0]);