Navigation
API > API/Runtime > API/Runtime/OpenGLDrv
References
| Module | OpenGLDrv |
| Header | /Engine/Source/Runtime/OpenGLDrv/Public/OpenGLShaders.h |
| Include | #include "OpenGLShaders.h" |
| Source | /Engine/Source/Runtime/OpenGLDrv/Private/OpenGLShaders.cpp |
void GLSLToDeviceCompatibleGLSL
(
FAnsiCharArray & GlslCodeOriginal,
const FString & ShaderName,
GLenum TypeEnum,
const FOpenGLShaderDeviceCapabilities & Capabilities,
FAnsiCharArray & GlslCode
)
Remarks
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
| Name | Description |
|---|---|
| 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 |