Ejemplo n.º 1
0
    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;
    }
Ejemplo n.º 2
0
    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;
    }