// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // 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_GRAPHICS_MATERIALPASSREGISTRY_HPP #define NAZARA_GRAPHICS_MATERIALPASSREGISTRY_HPP #include #include #include #include #include namespace Nz { class MaterialPassRegistry { public: MaterialPassRegistry() = default; MaterialPassRegistry(const MaterialPassRegistry&) = default; MaterialPassRegistry(MaterialPassRegistry&&) = default; ~MaterialPassRegistry() = default; inline std::size_t GetPassIndex(std::string_view passName) const; inline std::size_t RegisterPass(std::string passName); MaterialPassRegistry& operator=(const MaterialPassRegistry&) = default; MaterialPassRegistry& operator=(MaterialPassRegistry&&) = default; private: std::unordered_map, std::equal_to<>> m_passIndex; }; } #include #endif // NAZARA_GRAPHICS_MATERIALPASSREGISTRY_HPP