ShaderNode: Add save/load

This commit is contained in:
Lynix
2020-06-04 18:31:35 +02:00
parent 5790b502f7
commit 0888589716
17 changed files with 358 additions and 12 deletions

View File

@@ -4,6 +4,8 @@
#define NAZARA_SHADERNODES_ENUMS_HPP
#include <cstddef>
#include <optional>
#include <string>
enum class InputRole
{
@@ -40,10 +42,11 @@ enum class TextureType
constexpr std::size_t TextureTypeCount = static_cast<std::size_t>(TextureType::Max) + 1;
std::size_t GetComponentCount(InOutType type);
template<typename T> std::optional<T> DecodeEnum(const std::string_view& str);
const char* EnumToString(InputRole role);
const char* EnumToString(InOutType input);
const char* EnumToString(TextureType textureType);
std::size_t GetComponentCount(InOutType type);
#include <ShaderNode/Enums.inl>