From d6d49eac224a0d03c8f941deb59ee1520ff0ab5e Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 10 Jul 2017 10:52:30 -0700 Subject: Add support for `imageBuffer` This was mostly just a missing `typedef` in the Slang standard library code. This should also cover `textureBuffer` and `samplerBuffer`. --- source/slang/slang-stdlib.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-stdlib.cpp') 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]); -- cgit v1.2.3