| 19 | m_clear(); |
| 20 | } |
| 21 | bv_variable ShaderDebugger::Execute(const std::string& func, bv_stack* args) |
| 22 | { |
| 23 | bv_function* funcPtr = bv_program_get_function(m_prog, func.c_str()); |
| 24 | if (funcPtr == nullptr) |
| 25 | return bv_variable_create_void(); // function doesn't exist |
| 26 | |
| 27 | SetDiscarded(false); |
| 28 | |
| 29 | // call function and store its return value |
| 30 | return bv_program_call(m_prog, funcPtr, args, NULL); |
| 31 | } |
| 32 | void ShaderDebugger::AddGlobal(const std::string& varName) |
| 33 | { |
| 34 | bv_program_add_global(m_prog, varName.c_str()); |
nothing calls this directly
no outgoing calls
no test coverage detected