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

Initial working CGraphics Stream API

This commit is contained in:
2022-03-04 22:36:54 -05:00
parent d93cf46bc3
commit 33d0d14fda
18 changed files with 976 additions and 44 deletions

View File

@@ -4,7 +4,11 @@ namespace metaforce::CTevCombiners {
u32 CTevPass::sNextUniquePass = 0;
void CTevPass::Execute(ERglTevStage stage) const {
aurora::gfx::update_tev_stage(stage, x4_colorPass, x14_alphaPass, x24_colorOp, x38_alphaOp);
if (*this == skPassThru) {
aurora::gfx::disable_tev_stage(stage);
} else {
aurora::gfx::update_tev_stage(stage, x4_colorPass, x14_alphaPass, x24_colorOp, x38_alphaOp);
}
}
constexpr u32 maxTevPasses = 2;