| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected