| 114 | return ""; |
| 115 | } |
| 116 | std::vector<std::string> ShaderDebugger::GetFunctionStack() |
| 117 | { |
| 118 | if (m_stepper->scope->count == 0) |
| 119 | return std::vector<std::string>(); |
| 120 | |
| 121 | std::vector<std::string> ret; |
| 122 | bv_scope* scope = m_stepper->scope; |
| 123 | |
| 124 | // I think there was an easier way to get the function stack |
| 125 | // but I am not sure (TODO - check) |
| 126 | for (u32 j = 0; j < scope->count; j++) { |
| 127 | bv_state* state = &scope->state[j]; |
| 128 | bv_program* prog = state->prog; |
| 129 | u16 func_count = bv_program_get_function_count(prog); |
| 130 | for (u16 i = 0; i < func_count; i++) |
| 131 | if (prog->functions[i] == state->func) |
| 132 | ret.push_back(prog->block->functions->names[i]); |
| 133 | } |
| 134 | |
| 135 | return ret; |
| 136 | } |
| 137 | std::vector<std::string> ShaderDebugger::GetCurrentFunctionLocals() |
| 138 | { |
| 139 | std::string curFunc = GetCurrentFunction(); |
nothing calls this directly
no outgoing calls
no test coverage detected