summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-17 15:13:37 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-17 15:13:37 -0700
commitff4621460a98f34d74e4275841c313400cbda0dd (patch)
treea8f6a2334397ade3981f35d1ee764a4c325e0927 /source/slang/syntax.cpp
parent0059ccb3997c2af87bc3f76524d8cd4787c20b7e (diff)
Handle `Buffer` types more like textures
Fixes #94 We'd been handling HLSL `Buffer` and `RWBuffer` in a one-off fashion, and that led to a lot of code duplication, and also to the issue that we weren't handling `RasterizerOrderedBuffer` at all. This change basically folds `Buffer` in so that it is conceptually a texture type (just with a unique shape). Hopefully all the other logic still works.
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index 0d7a5ad74..503fbbb0e 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -421,13 +421,7 @@ void ExpressionType::accept(IValVisitor* visitor, void* extra)
CASE(GLSLOutputParameterBlockType, GLSLOutputParameterBlockType)
CASE(GLSLShaderStorageBufferType, GLSLShaderStorageBufferType)
- CASE(PackedBuffer, PackedBufferType)
- CASE(Uniform, UniformBufferType)
- CASE(Patch, PatchType)
-
- CASE(HLSLBufferType, HLSLBufferType)
CASE(HLSLStructuredBufferType, HLSLStructuredBufferType)
- CASE(HLSLRWBufferType, HLSLRWBufferType)
CASE(HLSLRWStructuredBufferType, HLSLRWStructuredBufferType)
CASE(HLSLAppendStructuredBufferType, HLSLAppendStructuredBufferType)
CASE(HLSLConsumeStructuredBufferType, HLSLConsumeStructuredBufferType)