mojoshader_internal.h
changeset 1038 9b23f9a8aa31
parent 1030 a407c516e325
child 1043 6227066350b4
--- a/mojoshader_internal.h	Tue May 31 16:01:10 2011 -0400
+++ b/mojoshader_internal.h	Tue May 31 16:25:00 2011 -0400
@@ -60,7 +60,6 @@
 #define SUPPORT_PROFILE_ARB1_NV 1
 #endif
 
-
 #if SUPPORT_PROFILE_ARB1_NV && !SUPPORT_PROFILE_ARB1
 #error nv profiles require arb1 profile. Fix your build.
 #endif
@@ -70,6 +69,20 @@
 #endif
 
 
+// Other stuff you can disable...
+
+// This removes the preshader parsing and execution code. You can save some
+//  bytes if you have normal shaders and not Effect files.
+#ifndef SUPPORT_PRESHADERS
+#define SUPPORT_PRESHADERS 1
+#endif
+
+#if SUPPORT_PRESHADERS
+void MOJOSHADER_runPreshader(const MOJOSHADER_preshader *, float *);
+#else
+#define MOJOSHADER_runPreshader(a, b)
+#endif
+
 
 // Get basic wankery out of the way here...