From 5ab20eb2d20d491e258047bd94d9d9d0ac5a5dbf Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 23 Feb 2018 17:22:36 -0500 Subject: Refactor IR type system, step 0 Pull BaseType, TextureFlavor and SamplerStateFlavor enums and helper functions into a shared file "type-system-shared.h". --- source/slang/syntax.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'source/slang/syntax.h') 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 @@ -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; -- cgit v1.2.3