Shader: Add function parameters and return handling

This commit is contained in:
Jérôme Leclercq
2021-02-28 17:50:32 +01:00
parent 9a0f201433
commit b320b5b44e
39 changed files with 818 additions and 327 deletions

View File

@@ -10,6 +10,7 @@
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Shader/Config.hpp>
#include <string>
#include <vector>
namespace Nz
{
@@ -23,7 +24,9 @@ namespace Nz
SpirvPrinter(SpirvPrinter&&) = default;
~SpirvPrinter() = default;
inline std::string Print(const std::vector<UInt32>& codepoints);
inline std::string Print(const UInt32* codepoints, std::size_t count);
inline std::string Print(const std::vector<UInt32>& codepoints, const Settings& settings);
std::string Print(const UInt32* codepoints, std::size_t count, const Settings& settings);
SpirvPrinter& operator=(const SpirvPrinter&) = default;