From 4aa4668073cddbf7249738fa7206f2ab94e6379c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 26 Jul 2016 12:05:21 -1000 Subject: [PATCH] Pre-emptive blending mode determination in IR loader --- hecl/include/hecl/Frontend.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/hecl/include/hecl/Frontend.hpp b/hecl/include/hecl/Frontend.hpp index 016415a9d..ff2cd944d 100644 --- a/hecl/include/hecl/Frontend.hpp +++ b/hecl/include/hecl/Frontend.hpp @@ -7,6 +7,7 @@ #include #include #include +#include namespace hecl { @@ -293,6 +294,10 @@ struct IR : BigDNA atUint16 m_regCount = 0; std::vector m_instructions; + boo::BlendFactor m_blendSrc = boo::BlendFactor::One; + boo::BlendFactor m_blendDst = boo::BlendFactor::Zero; + bool m_doAlpha = false; + void read(athena::io::IStreamReader& reader) { m_hash = reader.readUint64Big(); @@ -302,6 +307,27 @@ struct IR : BigDNA m_instructions.reserve(instCount); for (atUint16 i=0 ; i