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

Method GetCurrentFunction

src/ShaderDebugger.cpp:101–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 std::string ShaderDebugger::GetCurrentFunction()
102 {
103 if (m_stepper->scope->count == 0)
104 return "";
105
106 bv_state* state = bv_scope_get_state(m_stepper->scope);
107 bv_program* prog = state->prog;
108 u16 func_count = bv_program_get_function_count(prog);
109
110 for (u16 i = 0; i < func_count; i++)
111 if (prog->functions[i] == state->func)
112 return prog->block->functions->names[i];
113
114 return "";
115 }
116 std::vector<std::string> ShaderDebugger::GetFunctionStack()
117 {
118 if (m_stepper->scope->count == 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected