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

Method Execute

src/ShaderDebugger.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected