bool open_bytecode(const char* shader_code) { init(); const bool ok = m_query.open_bytecode(shader_code); if (ok) m_param_info.assign(m_query.nparams(), OptionalDictionary()); return ok; }
bool open(const char* shader_name) { init(); const bool ok = m_query.open(shader_name, m_search_path); if (ok) m_param_info.assign(m_query.nparams(), OptionalDictionary()); return ok; }