VideoCommon: add function to serialize ShaderAsset to json

This commit is contained in:
iwubcode
2024-01-23 01:05:16 -06:00
parent d1b4c5482c
commit b5a6225e1a
5 changed files with 104 additions and 0 deletions

View File

@ -52,6 +52,7 @@ struct PixelShaderData
{
static bool FromJson(const CustomAssetLibrary::AssetID& asset_id, const picojson::object& json,
PixelShaderData* data);
static void ToJson(picojson::object& obj, const PixelShaderData& data);
// These shader properties describe the input that the
// shader expects to expose. The key is text