aboutsummaryrefslogtreecommitdiff
path: root/sp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'sp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h')
-rw-r--r--sp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/sp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h b/sp/src/materialsystem/stdshaders/cpp_shader_constant_register_map.h
new file mode 100644
index 00000000..b448b048
--- /dev/null
+++ b/sp/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
+