[PICA] Start implementing shader interpreter

This commit is contained in:
wheremyfoodat 2022-09-23 02:43:51 +03:00
parent 4b3c7955dd
commit 057aa57422
5 changed files with 32 additions and 6 deletions

View file

@ -0,0 +1,14 @@
#include "PICA/shader.hpp"
void PICAShader::run() {
u32 pc = 0; // Program counter
while (true) {
const u32 instruction = loadedShader[pc++];
const u32 opcode = instruction >> 26; // Top 6 bits are the opcode
switch (opcode) {
default:Helpers::panic("Unimplemented PICA instruction %08X (Opcode = %02X)", instruction, opcode);
}
}
}