From 1f083a60c99d68cbd48516afc4ec706a6b5cabd0 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 20 Nov 2025 22:00:50 -0600 Subject: [PATCH] VideoCommon: update ShaderAsset to remove requirement of the code name being in the shader source, this just makes it more difficult to iteratively test changes, assume shader devs know what they are doing --- Source/Core/VideoCommon/Assets/ShaderAsset.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp index cd5431e43b3..ba30911a50b 100644 --- a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp +++ b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp @@ -252,23 +252,7 @@ bool RasterSurfaceShaderData::FromJson(const VideoCommon::CustomAssetLibrary::As } const auto& properties_array = properties_iter->second.get(); - if (!ParseShaderProperties(asset_id, properties_array, properties)) - return false; - - for (const auto& [code_name, property] : *properties) - { - if (source.find(code_name) == std::string::npos) - { - ERROR_LOG_FMT( - VIDEO, - "Asset '{}' failed to parse json, the code name '{}' defined in the metadata was not " - "found in the source for '{}'", - asset_id, code_name, name); - return false; - } - } - - return true; + return ParseShaderProperties(asset_id, properties_array, properties) }; const auto parse_samplers =