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

Method SetSemanticValue

src/ShaderDebugger.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return bv_program_get_global(m_prog, const_cast<char*>(gvarname.c_str())); // TODO: why does get_global need non const??
39 }
40 void ShaderDebugger::SetSemanticValue(const std::string& name, bv_variable var)
41 {
42 std::string lName = name;
43 std::transform(lName.begin(), lName.end(), lName.begin(), ::tolower);
44
45 if (m_semantics.count(lName))
46 bv_variable_deinitialize(&m_semantics[lName]);
47
48 m_semantics[lName] = bv_variable_copy(var);
49 }
50 bv_variable ShaderDebugger::GetSemanticValue(const std::string& name)
51 {
52 std::string lName = name;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected