enum HALConfigFlags { HALConfig_DynamicShaderCompile = HALConfig_DynamicShaderInit, HALConfig_DisableBinaryShaders = 0x00000002, HALConfig_MultipleShaderCacheFiles = 0x00000004, HALConfig_DisableShaderPipelines = 0x00000008, HALConfig_DisableMultipassShaderCompile = 0x00000010, HALConfig_DebugMessages = 0x00000020, HALConfig_NoVAO = 0x00000040, HALConfig_TraceGLExecution = 0x00000080 };
HALConfigFlags enumeration defines system-specific HAL configuration flags passed into InitHAL through HALInitParams.
Members |
Description |
HALConfig_DynamicShaderCompile = HALConfig_DynamicShaderInit |
Only compile shaders when they are actually used. This can reduce startup- times. However, compiling shaders dynamically can cause performance spikes during playback. Note that if binary shaders are available in the OpenGL/ES implementation and not explicitly disabled by using HALConfig_DisableBinaryShaders, this flag is ignored, and all shaders are loaded at startup. They subsequently will be loaded from disk, which is much faster. |
HALConfig_DisableBinaryShaders = 0x00000002 |
Disables the use of binary shaders (loading and saving), even if the OpenGL/ES implementation has the required support for it. |
HALConfig_MultipleShaderCacheFiles = 0x00000004 |
Instead of storing all binary shaders in a single file, which is only saved on shutdown, save each shader in an individual file. This enables saving of binary shaders when they are dynamically initialized. |
HALConfig_DisableShaderPipelines = 0x00000008 |
Disables the usage of separable shader program pipelines (eg. GL_EXT_separate_shader_objects), even if the OpenGL/ES implementation has the required support for it. |
HALConfig_DisableMultipassShaderCompile = 0x00000010 |
Shaders are compiled in passes by default (compile all, then check link status). This allows some drivers to thread the compilation, and can reduce startup times. This is ignored when using HALConfig_DynamicShaderCompile. |
HALConfig_DebugMessages = 0x00000020 |
Enables debugging output via the glDebugMessageCallback. This can be useful to get driver specific error messages. Note that a GL context with the debug-bit enabled is required for these to output. |
HALConfig_NoVAO = 0x00000040 | |
HALConfig_TraceGLExecution = 0x00000080 |
If set, all GL commands and their parameters will be logged to the output. |
GL_HAL.h