33 lines
886 B
C++
33 lines
886 B
C++
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
|
// This file is part of the "Nazara Engine - Shader module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#include <Nazara/Shader/SpirvPrinter.hpp>
|
|
#include <Nazara/Shader/Debug.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
inline SpirvPrinter::SpirvPrinter() :
|
|
m_currentState(nullptr)
|
|
{
|
|
}
|
|
|
|
inline std::string SpirvPrinter::Print(const std::vector<UInt32>& codepoints)
|
|
{
|
|
return Print(codepoints.data(), codepoints.size());
|
|
}
|
|
|
|
inline std::string SpirvPrinter::Print(const UInt32* codepoints, std::size_t count)
|
|
{
|
|
Settings settings;
|
|
return Print(codepoints, count, settings);
|
|
}
|
|
|
|
inline std::string SpirvPrinter::Print(const std::vector<UInt32>& codepoints, const Settings& settings)
|
|
{
|
|
return Print(codepoints.data(), codepoints.size(), settings);
|
|
}
|
|
}
|
|
|
|
#include <Nazara/Shader/DebugOff.hpp>
|