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

Method m_clear

src/ShaderDebugger.cpp:400–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398 return { 0, "", {} };
399 }
400 void ShaderDebugger::m_clear()
401 {
402 if (m_compiler != nullptr)
403 delete m_compiler;
404 if (m_immCompiler != nullptr)
405 delete m_immCompiler;
406 if (m_prog != nullptr) {
407 bv_program_delete(m_prog);
408 m_prog = nullptr;
409 }
410 if (m_library != nullptr) {
411 bv_library_delete(m_library);
412 m_library = nullptr;
413 }
414 if (m_stepper != nullptr) {
415 bv_function_stepper_delete(m_stepper);
416 m_stepper = nullptr;
417 }
418 if (m_args != nullptr) {
419 bv_stack_delete(m_args);
420 m_args = nullptr;
421 }
422 }
423}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected