Merge pull request #10819 from Dentomologist/fix_shader_compilation_warnings

VideoCommon: Fix D3D shader compilation warnings
This commit is contained in:
JMC47
2022-07-08 18:46:29 -04:00
committed by GitHub
4 changed files with 14 additions and 8 deletions

View File

@ -827,8 +827,8 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
out.Write(
" uint alpha_compare_op = alpha_scale << 1 | uint(alpha_op);\n"
"\n"
" int alpha_A;\n"
" int alpha_B;\n"
" int alpha_A = 0;\n"
" int alpha_B = 0;\n"
" if (alpha_bias != 3u || alpha_compare_op > 5u) {{\n"
" // Small optimisation here: alpha_A and alpha_B are unused by compare ops 0-5\n"
" alpha_A = selectAlphaInput(s, ss, {0}colors_0, {0}colors_1, alpha_a) & 255;\n"