glasm: Implement basic GLASM instructions

This commit is contained in:
ReinUsesLisp 2021-05-08 16:28:52 -03:00 committed by ameerj
parent c1ba685d9c
commit 6fd190d1ae
10 changed files with 1173 additions and 840 deletions

View file

@ -13,13 +13,14 @@
namespace Shader::IR {
class Inst;
}
struct Program;
} // namespace Shader::IR
namespace Shader::Backend::GLASM {
class EmitContext {
public:
explicit EmitContext();
explicit EmitContext(IR::Program& program);
template <typename... Args>
void Add(const char* fmt, IR::Inst& inst, Args&&... args) {