2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-02-14 20:00:26 -08:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include <array>
|
|
|
|
|
2022-01-31 16:06:54 -08:00
|
|
|
//#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
2016-02-14 20:00:26 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2016-02-14 20:00:26 -08:00
|
|
|
class CElementGen;
|
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
class CElementGenShaders {
|
2016-02-14 20:00:26 -08:00
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
enum class EShaderClass { Tex, IndTex, NoTex };
|
2016-02-14 20:00:26 -08:00
|
|
|
|
|
|
|
private:
|
2022-01-31 16:06:54 -08:00
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texZTestZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texNoZTestZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texZTestNoZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texNoZTestNoZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAdditiveZTest;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAdditiveNoZTest;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texRedToAlphaZTest;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texRedToAlphaNoZTest;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texZTestNoZWriteSub;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texNoZTestNoZWriteSub;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texRedToAlphaZTestSub;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texRedToAlphaNoZTestSub;
|
|
|
|
//
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_indTexZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_indTexNoZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_indTexAdditive;
|
|
|
|
//
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_cindTexZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_cindTexNoZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_cindTexAdditive;
|
|
|
|
//
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexZTestZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexNoZTestZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexZTestNoZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexNoZTestNoZWrite;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAdditiveZTest;
|
|
|
|
// static inline std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAdditiveNoZTest;
|
2016-02-14 20:00:26 -08:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
static EShaderClass GetShaderClass(CElementGen& gen);
|
2022-01-31 16:06:54 -08:00
|
|
|
static void BuildShaderDataBinding(CElementGen& gen);
|
2016-02-14 20:00:26 -08:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|