aboutsummaryrefslogtreecommitdiff
path: root/mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-17 18:26:59 -0700
committerJoe Ludwig <[email protected]>2013-07-17 18:26:59 -0700
commite16ea21dc8a710237ade8413207f58d403c616a3 (patch)
tree85dcfbda9881e4e022dedafefbc2727e2fd2aa59 /mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h
parentMerge pull request #36 from AnAkIn1/fogplayerparams_fix (diff)
downloadsource-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.tar.xz
source-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.zip
* Added support for building shaders in your mod
* Added nav mesh support * fixed many warnings and misc bugs * Fixed the create*projects scripts in mp * Added a bunch of stuff to .gitignore
Diffstat (limited to 'mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h')
-rw-r--r--mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h b/mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h
new file mode 100644
index 00000000..b448b048
--- /dev/null
+++ b/mp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Provide convenient mapping for shader constants
+//
+// $NoKeywords: $
+//=============================================================================
+
+#define C_CODE_HACK
+#include "shader_constant_register_map.h"
+#undef C_CODE_HACK
+
+// For the C code, map the above file's defines back to integers...
+#define PSREG_CONSTANT_00 0
+#define PSREG_CONSTANT_01 1
+#define PSREG_CONSTANT_02 2
+#define PSREG_CONSTANT_03 3
+#define PSREG_CONSTANT_04 4
+#define PSREG_CONSTANT_05 5
+#define PSREG_CONSTANT_06 6
+#define PSREG_CONSTANT_07 7
+#define PSREG_CONSTANT_08 8
+#define PSREG_CONSTANT_09 9
+#define PSREG_CONSTANT_10 10
+#define PSREG_CONSTANT_11 11
+#define PSREG_CONSTANT_12 12
+#define PSREG_CONSTANT_13 13
+#define PSREG_CONSTANT_14 14
+#define PSREG_CONSTANT_15 15
+#define PSREG_CONSTANT_16 16
+#define PSREG_CONSTANT_17 17
+#define PSREG_CONSTANT_18 18
+#define PSREG_CONSTANT_19 19
+#define PSREG_CONSTANT_20 20
+#define PSREG_CONSTANT_21 21
+#define PSREG_CONSTANT_22 22
+#define PSREG_CONSTANT_23 23
+#define PSREG_CONSTANT_24 24
+#define PSREG_CONSTANT_25 25
+#define PSREG_CONSTANT_26 26
+#define PSREG_CONSTANT_27 27
+#define PSREG_CONSTANT_28 28
+#define PSREG_CONSTANT_29 29
+#define PSREG_CONSTANT_30 30
+#define PSREG_CONSTANT_31 31
+