mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
Merge pull request #10819 from Dentomologist/fix_shader_compilation_warnings
VideoCommon: Fix D3D shader compilation warnings
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user