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

Method m_exportLine

inc/ShaderDebugger/HLSLCompiler.h:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 int m_lastLineSaved; // dont add OpCode::DebugLine for every expression, but rather only when astNode->line != m_lastLineSaved
84
85 inline void m_exportLine(const M4::HLSLNode* node, bool force = false)
86 {
87 if (!node)
88 return;
89
90 if ((m_lastLineSaved != node->line || force) && m_curFuncData != nullptr) {
91 m_gen.Function.DebugLineNumber(node->line);
92 m_lastLineSaved = node->line;
93 }
94 }
95
96 bool m_isInsideBuffer;
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected