Go to the source code of this file.
◆ EOpenGLShaderTargetPlatform
| Enumerator |
|---|
| OGLSTP_Unknown | |
| OGLSTP_Desktop | |
| OGLSTP_Android | |
| OGLSTP_iOS | |
◆ GetCurrentOpenGLShaderDeviceCapabilities()
Gets the GL device capabilities for the current device.
- Parameters
-
| Capabilities | [out] The current platform's capabilities on device for shader compiling |
◆ GLSLToDeviceCompatibleGLSL()
Processes the GLSL output of the shader cross compiler to get GLSL that can be compiled on a platform with the specified capabilities. Works around inconsistencies between OpenGL implementations, including lack of support for certain extensions and drivers with non-conformant behavior.
- Parameters
-
| GlslCodeOriginal | - [in,out] GLSL output from shader cross compiler to be modified. Process is destructive; pass in a copy if still need original! |
| ShaderName | - [in] Shader name |
| TypeEnum | - [in] Type of shader (GL_[VERTEX, FRAGMENT, GEOMETRY, TESS_CONTROL, TESS_EVALUATION]_SHADER) |
| Capabilities | - [in] GL Device capabilities |
| GlslCode | - [out] Compilable GLSL |
◆ PE_AppendCString()
◆ PE_ReplaceCString()