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