From b72353ec3fe529237828cacbe710233d31eb4837 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 24 Sep 2020 14:30:12 -0700 Subject: 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. --- slang.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 48af5ef36..60e7c43a7 100644 --- a/slang.h +++ b/slang.h @@ -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 { -- cgit v1.2.3