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

Method m_exportLine

inc/ShaderDebugger/GLSLCompiler.h:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 int m_lastLineSaved; // dont add OpCode::DebugLine for every expression, but rather only when astNode->line != m_lastLineSaved
109 template<typename T>
110 inline void m_exportLine(glsl::astNode<T>* node, bool force = false)
111 {
112 if (!node)
113 return;
114
115 if (m_lastLineSaved != node->line || force) {
116 m_gen.Function.DebugLineNumber(node->line);
117 m_lastLineSaved = node->line;
118 }
119 }
120
121 ExpressionType m_convertExprType(const std::string& str);
122 ExpressionType m_mergeExprType(int op, const ExpressionType& left, const ExpressionType& right);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected