// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Renderer module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_UBERSHADER_HPP #define NAZARA_UBERSHADER_HPP #include #include #include #include #include #include #include class NzUberShader; using NzUberShaderConstRef = NzObjectRef; using NzUberShaderLibrary = NzObjectLibrary; using NzUberShaderRef = NzObjectRef; class NAZARA_API NzUberShader : public NzRefCounted { friend NzUberShaderLibrary; friend class NzRenderer; public: NzUberShader() = default; virtual ~NzUberShader(); virtual NzUberShaderInstance* Get(const NzParameterList& parameters) const = 0; NazaraSignal(OnUberShaderRelease, const NzUberShader*); //< Args: me private: static bool Initialize(); static void Uninitialize(); static NzUberShaderLibrary::LibraryMap s_library; }; #endif // NAZARA_UBERSHADER_HPP