summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-07 08:37:39 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-07 08:37:39 -0700
commitd644ddcc643be8b30e70b7585a1d32c958e990a4 (patch)
treeeec14828d64e529e8b0236dfa0c7e2850e210c44 /slang.h
parent54519ed70fbe154e196d04a8b62f6ea6aeded52a (diff)
Add some reflection support for SSBO and `tbuffer` declarations
These are mostly copy-pasted from the existing `cbuffer` support, so there might be details I'm missing.
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/slang.h b/slang.h
index 926ef531d..b6f35f255 100644
--- a/slang.h
+++ b/slang.h
@@ -358,7 +358,9 @@ extern "C"
SLANG_TYPE_KIND_CONSTANT_BUFFER,
SLANG_TYPE_KIND_RESOURCE,
SLANG_TYPE_KIND_SAMPLER_STATE,
-
+ SLANG_TYPE_KIND_TEXTURE_BUFFER,
+ SLANG_TYPE_KIND_SHADER_STORAGE_BUFFER,
+
SLANG_TYPE_KIND_COUNT,
};
@@ -547,6 +549,8 @@ namespace slang
ConstantBuffer = SLANG_TYPE_KIND_CONSTANT_BUFFER,
Resource = SLANG_TYPE_KIND_RESOURCE,
SamplerState = SLANG_TYPE_KIND_SAMPLER_STATE,
+ TextureBuffer = SLANG_TYPE_KIND_TEXTURE_BUFFER,
+ ShaderStorageBuffer = SLANG_TYPE_KIND_SHADER_STORAGE_BUFFER,
};
enum ScalarType : SlangScalarType