Essl100Emitter class
#include <derCompiler/Essl100.h>
Transforms an already-lowered modern-GLSL stage source into ESSL 100 (OpenGL ES 2.0).
Public static functions
- static auto Transform(StringView modernSource, bool vertexStage, String& out, Diagnostic& diag) -> bool
Function documentation
static bool ShaderCompiler:: Essl100Emitter:: Transform(StringView modernSource,
bool vertexStage,
String& out,
Diagnostic& diag)
Transforms modernSource (as produced by ShaderParser::BuildStageSource) into ESSL 100, writing the result to out. vertexStage selects the vertex-vs-fragment lowering. Returns false and fills diag (with the offending line) when the source uses a feature ES2 cannot express — a "layout(std140)" uniform block or gl_VertexID — which this emitter does not attempt (see the file comment).