summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-02-23 17:22:36 -0500
committerYong He <yonghe@outlook.com>2018-02-23 17:41:46 -0500
commit5ab20eb2d20d491e258047bd94d9d9d0ac5a5dbf (patch)
treebe054fb8e5767daa3cfe42c51e812f21b6fbdd72 /source/slang/syntax.h
parent706675949e70b17860e9ca514c01461fdf9aa95d (diff)
Refactor IR type system, step 0
Pull BaseType, TextureFlavor and SamplerStateFlavor enums and helper functions into a shared file "type-system-shared.h".
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index b37301dec..32f57ce4c 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -5,7 +5,7 @@
#include "ir.h"
#include "lexer.h"
#include "profile.h"
-
+#include "type-system-shared.h"
#include "../../slang.h"
#include <assert.h>
@@ -88,19 +88,6 @@ namespace Slang
// We either need to keep that restriction, or
// look up promotion rank by some other means.
//
- enum class BaseType
- {
- // Note(tfoley): These are ordered in terms of promotion rank, so be vareful when messing with this
-
- Void = 0,
- Bool,
- Int,
- UInt,
- UInt64,
- Half,
- Float,
- Double,
- };
class Decl;
class Val;