diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-10 10:44:02 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-10 10:44:02 -0700 |
| commit | b2fb0f7134de4e0b1a0db685eb1ae3c0678a33c5 (patch) | |
| tree | 5597bca9d791391e069c8997a84ac9a8b1061024 /source/slang/type-layout.h | |
| parent | 8abdf2dddd10feb9794c86cdf6b2159a2b6383e4 (diff) | |
Try to be more robust against un-checked types during lowering, etc.
- Try to handle `ErrorType` gracefully when computing type layouts
- When outputting a `TypeExp`, if the type part is errorneous (or missing), try to use the expression part
- Make sure to lower the expressions side of a `TypeExp` during lowering
Diffstat (limited to 'source/slang/type-layout.h')
| -rw-r--r-- | source/slang/type-layout.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h index 262a8c3b1..1a63a4883 100644 --- a/source/slang/type-layout.h +++ b/source/slang/type-layout.h @@ -415,6 +415,9 @@ enum class ShaderParameterKind InputRenderTarget, SamplerState, + + Image, + MutableImage, }; struct SimpleLayoutRulesImpl |
