Merge pull request #14233 from Sintendo/fix-shader-resource-warning

VideoCommon: Fix ShaderResource init order warning
This commit is contained in:
JosJuice 2025-12-27 11:16:21 +01:00 committed by GitHub
commit 73f2ac6eb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,9 +167,8 @@ ShaderResource::ShaderResource(Resource::ResourceContext resource_context,
const GXPipelineUid& pipeline_uid,
const std::string& preprocessor_setting,
const ShaderHostConfig& shader_host_config)
: Resource(std::move(resource_context)), m_uid(pipeline_uid),
m_preprocessor_settings(preprocessor_setting),
m_shader_host_config{.bits = shader_host_config.bits}
: Resource(std::move(resource_context)), m_shader_host_config{.bits = shader_host_config.bits},
m_uid(pipeline_uid), m_preprocessor_settings(preprocessor_setting)
{
m_shader_asset = m_resource_context.asset_cache->CreateAsset<RasterSurfaceShaderAsset>(
m_resource_context.primary_asset_id, m_resource_context.asset_library, this);