// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_UBER_SHADER_HPP #define NAZARA_UBER_SHADER_HPP #include #include #include #include #include namespace Nz { class ShaderStage; class NAZARA_GRAPHICS_API UberShader { public: UberShader(ShaderAst shaderAst); ~UberShader() = default; UInt64 GetConditionFlagByName(const std::string_view& condition) const; const std::shared_ptr& Get(UInt64 combination); private: std::unordered_map> m_combinations; ShaderAst m_shaderAst; UInt64 m_combinationMask; }; } #include #endif // NAZARA_UBER_SHADER_HPP