VideoCommon: Fix ShaderResource init order warning

This commit is contained in:
Sintendo 2025-12-26 23:15:17 +01:00
parent 4b086b1256
commit 1b3485b6fd

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);