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

Method translateFieldOrSwizzle

src/GLSLCompiler.cpp:357–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 void GLSLCompiler::translateFieldOrSwizzle(glsl::astFieldOrSwizzle *expression) {
358 bool temp_isSet = m_isSet, temp_usePointer = m_usePointer;
359 m_isSet = false;
360 m_usePointer = true;
361 translateExpression(expression->operand);
362 m_isSet = temp_isSet;
363 m_usePointer = temp_usePointer;
364
365 if (m_isSet) m_gen.Function.SetProperty(expression->name);
366 else {
367 if (m_usePointer) m_gen.Function.GetPropertyPointer(expression->name);
368 else m_gen.Function.GetProperty(expression->name);
369 }
370 }
371
372 void GLSLCompiler::translateArraySubscript(glsl::astArraySubscript *expression) {
373 // first push index

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected