2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:07:43 +00:00

Initial GX Backend

This commit is contained in:
Jack Andersen
2015-10-09 20:59:40 -10:00
parent 96b8c4c8d8
commit 45b1d2edf3
43 changed files with 354 additions and 79 deletions

View File

@@ -345,7 +345,7 @@ void Lexer::EmitVec3(IR& ir, const Lexer::OperationNode* funcNode, IR::RegID tar
vec.vec[0] = imms[0]->m_tokenFloat;
vec.vec[1] = imms[1]->m_tokenFloat;
vec.vec[2] = imms[2]->m_tokenFloat;
vec.vec[3] = 0.0;
vec.vec[3] = 1.0;
return;
}
@@ -569,7 +569,7 @@ void Lexer::EmitVectorSwizzle(IR& ir, const Lexer::OperationNode* swizNode, IR::
eval.vec[0] = opt->vec[SwizzleCompIdx(str[0])];
eval.vec[1] = opt->vec[SwizzleCompIdx(str[1])];
eval.vec[2] = opt->vec[SwizzleCompIdx(str[2])];
eval.vec[3] = 0.0;
eval.vec[3] = 1.0;
break;
case 4:
eval.vec[0] = opt->vec[SwizzleCompIdx(str[0])];

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRADD_HPP
#define CEXPRADD_HPP
#endif // CEXPRADD_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRBASE_HPP
#define CEXPRBASE_HPP
#endif // CEXPRBASE_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRCALL_HPP
#define CEXPRCALL_HPP
#endif // CEXPRCALL_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRGROUP_HPP
#define CEXPRGROUP_HPP
#endif // CEXPRGROUP_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRLIGHTING_HPP
#define CEXPRLIGHTING_HPP
#endif // CEXPRLIGHTING_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRMUL_HPP
#define CEXPRMUL_HPP
#endif // CEXPRMUL_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRROOT_HPP
#define CEXPRROOT_HPP
#endif // CEXPRROOT_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRSUB_HPP
#define CEXPRSUB_HPP
#endif // CEXPRSUB_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRTEXTURE_HPP
#define CEXPRTEXTURE_HPP
#endif // CEXPRTEXTURE_HPP

View File

@@ -1,4 +0,0 @@
#ifndef CEXPRTEXTUREGATHER_HPP
#define CEXPRTEXTUREGATHER_HPP
#endif // CEXPRTEXTUREGATHER_HPP

View File

@@ -1,15 +0,0 @@
#ifndef EXPR_HPP
#define EXPR_HPP
#include "CExprBase.hpp"
#include "CExprRoot.hpp"
#include "CExprCall.hpp"
#include "CExprGroup.hpp"
#include "CExprMul.hpp"
#include "CExprAdd.hpp"
#include "CExprSub.hpp"
#include "CExprTexture.hpp"
#include "CExprTextureGather.hpp"
#include "CExprLighting.hpp"
#endif // EXPR_HPP