MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / translateFloatConstant

Method translateFloatConstant

src/GLSLCompiler.cpp:159–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 void GLSLCompiler::translateFloatConstant(glsl::astFloatConstant *expression) {
160 m_gen.Function.PushStack((float)expression->value);
161 }
162
163 void GLSLCompiler::translateDoubleConstant(glsl::astDoubleConstant *expression) {
164 m_gen.Function.PushStack((float)expression->value); // TODO: double?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected