diff options
| author | Yong He <yonghe@outlook.com> | 2020-09-24 14:30:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-24 14:30:12 -0700 |
| commit | b72353ec3fe529237828cacbe710233d31eb4837 (patch) | |
| tree | 2aec9af97efe52b722cb730f8db1c44641e58c62 /slang.h | |
| parent | 150218bec9e992d32833dd9a0c1396a4d7c12b7e (diff) | |
Enable default cpp prelude. (#1560)
* Enable default cpp prelude.
* Print the "#include" line as a normal source if the file does not exist.
* Bug fix
* Fix.
* Fix c++ prelude header.
* Remove unnecessary fopen call.
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1832,6 +1832,8 @@ extern "C" SLANG_SCALAR_TYPE_UINT16, }; +#ifndef SLANG_RESOURCE_SHAPE +# define SLANG_RESOURCE_SHAPE typedef unsigned int SlangResourceShape; enum { @@ -1863,7 +1865,7 @@ extern "C" SLANG_TEXTURE_2D_MULTISAMPLE = SLANG_TEXTURE_2D | SLANG_TEXTURE_MULTISAMPLE_FLAG, SLANG_TEXTURE_2D_MULTISAMPLE_ARRAY = SLANG_TEXTURE_2D | SLANG_TEXTURE_MULTISAMPLE_FLAG | SLANG_TEXTURE_ARRAY_FLAG, }; - +#endif typedef unsigned int SlangResourceAccess; enum { |
