| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <string> |
| 7 |
|
| 8 |
#include <picojson.h> |
| 9 |
|
| 10 |
#include "VideoCommon/Assets/CustomAssetLibrary.h" |
| 11 |
|
| 12 |
namespace VideoCommon |
| 13 |
{ |
| 14 |
|
| 15 |
struct TextureSamplerValue |
| 16 |
{ |
| 17 |
CustomAssetLibrary::AssetID asset; |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
enum class SamplerOrigin |
| 25 |
{ |
| 26 |
Asset, |
| 27 |
TextureHash |
| 28 |
}; |
| 29 |
static std::string ToString(SamplerOrigin sampler_origin); |
| 30 |
SamplerOrigin sampler_origin = SamplerOrigin::Asset; |
| 31 |
std::string texture_hash; |
| 32 |
|
| 33 |
static bool FromJson(const picojson::object& json, TextureSamplerValue* data); |
| 34 |
static void ToJson(picojson::object* obj, const TextureSamplerValue& data); |
| 35 |
}; |
| 36 |
} |