mojoshader_compiler.c
changeset 724 e96f140736f0
parent 721 82d1aec6b549
child 730 d4fe68d04624
--- a/mojoshader_compiler.c	Fri Mar 06 22:56:44 2009 -0500
+++ b/mojoshader_compiler.c	Fri Mar 06 22:58:21 2009 -0500
@@ -245,6 +245,15 @@
             if (tokencmp("call")) return TOKEN_HLSL_CALL;
             if (tokencmp("case")) return TOKEN_HLSL_CASE;
             if (tokencmp("default")) return TOKEN_HLSL_DEFAULT;
+            if (tokencmp("sampler")) return TOKEN_HLSL_SAMPLER;
+            if (tokencmp("sampler1D")) return TOKEN_HLSL_SAMPLER1D;
+            if (tokencmp("sampler2D")) return TOKEN_HLSL_SAMPLER2D;
+            if (tokencmp("sampler3D")) return TOKEN_HLSL_SAMPLER3D;
+            if (tokencmp("samplerCUBE")) return TOKEN_HLSL_SAMPLERCUBE;
+            if (tokencmp("sampler_state")) return TOKEN_HLSL_SAMPLER_STATE;
+            if (tokencmp("SamplerState")) return TOKEN_HLSL_SAMPLERSTATE;
+            if (tokencmp("SamplerComparisonState")) return TOKEN_HLSL_SAMPLERCOMPARISONSTATE;
+
             #undef tokencmp
             return TOKEN_HLSL_IDENTIFIER;