mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-13 22:52:33 +00:00
[PICA interpreter] Implement mova
This commit is contained in:
parent
0aaf1c317d
commit
63ff2ac0de
2 changed files with 21 additions and 1 deletions
|
@ -15,6 +15,7 @@ namespace ShaderOpcodes {
|
|||
ADD = 0x00,
|
||||
DP4 = 0x02,
|
||||
MUL = 0x08,
|
||||
MOVA = 0x12,
|
||||
MOV = 0x13,
|
||||
END = 0x22
|
||||
};
|
||||
|
@ -32,7 +33,8 @@ class PICAShader {
|
|||
|
||||
std::array<u32, 4> floatUniformBuffer; // Buffer for temporarily caching float uniform data
|
||||
std::array<u32, 128> operandDescriptors;
|
||||
std::array<vec4f, 16> tempRegisters;
|
||||
std::array<vec4f, 16> tempRegisters; // General purpose registers the shader can use for temp values
|
||||
OpenGL::Vector<u32, 2> addrRegister; // Address register
|
||||
ShaderType type;
|
||||
|
||||
vec4f getSource(u32 source);
|
||||
|
@ -42,6 +44,7 @@ class PICAShader {
|
|||
void add(u32 instruction);
|
||||
void dp4(u32 instruction);
|
||||
void mov(u32 instruction);
|
||||
void mova(u32 instruction);
|
||||
void mul(u32 instruction);
|
||||
|
||||
// src1, src2 and src3 have different negation & component swizzle bits in the operand descriptor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue