Added a config variable to dump all generated shaders

This commit is contained in:
Josh Yelon 2008-01-25 03:29:52 +00:00
parent baa7dfcb33
commit 151d8c2814
2 changed files with 7 additions and 0 deletions

View File

@ -213,6 +213,12 @@ ConfigVariableBool preserve_triangle_strips
"effective at combining multiple Geoms together, but they will "
"not implicitly decompose triangle strips."));
ConfigVariableBool dump_generated_shaders
("dump-generated-shaders", false,
PRC_DESC("Set this true to cause all generated shaders to be written "
"to disk. This is useful for debugging broken shader "
"generators."));
ConfigVariableEnum<AutoTextureScale> textures_power_2
("textures-power-2", ATS_down,
PRC_DESC("Specify whether textures should automatically be constrained to "

View File

@ -66,6 +66,7 @@ extern EXPCL_PANDA_GOBJ ConfigVariableBool matrix_palette;
extern EXPCL_PANDA_GOBJ ConfigVariableBool display_list_animation;
extern EXPCL_PANDA_GOBJ ConfigVariableBool connect_triangle_strips;
extern EXPCL_PANDA_GOBJ ConfigVariableBool preserve_triangle_strips;
extern EXPCL_PANDA_GOBJ ConfigVariableBool dump_generated_shaders;
extern EXPCL_PANDA_GOBJ ConfigVariableEnum<AutoTextureScale> textures_power_2;
extern EXPCL_PANDA_GOBJ ConfigVariableEnum<AutoTextureScale> textures_square;