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

Method translateArrayAccess

src/HLSLCompiler.cpp:904–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902 }
903 }
904 void HLSLCompiler::translateArrayAccess(M4::HLSLArrayAccess* expr)
905 {
906 translateExpression(expr->index);
907
908 bool temp_isSet = m_isSet;
909 m_isSet = false;
910 translateExpression(expr->array);
911 m_isSet = temp_isSet;
912
913 if (m_isSet) {
914 m_gen.Function.SetArrayElement();
915 translateExpression(expr->array);
916 } else
917 m_gen.Function.GetArrayElement();
918 }
919 void HLSLCompiler::translateFunctionCall(M4::HLSLFunctionCall* expr)
920 {
921 // mul(a,b)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected