mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Merge pull request #10819 from Dentomologist/fix_shader_compilation_warnings
VideoCommon: Fix D3D shader compilation warnings
This commit is contained in:
commit
fac66897af
4 changed files with 14 additions and 8 deletions
|
@ -712,8 +712,8 @@ static void WriteXFBEncoder(ShaderCode& code, APIType api_type, const EFBCopyPar
|
|||
WriteSampleColor(code, "rgb", "color1", 1, api_type, params);
|
||||
|
||||
// Gamma is only applied to XFB copies.
|
||||
code.Write(" color0 = pow(color0, float3(gamma_rcp, gamma_rcp, gamma_rcp));\n"
|
||||
" color1 = pow(color1, float3(gamma_rcp, gamma_rcp, gamma_rcp));\n");
|
||||
code.Write(" color0 = pow(abs(color0), float3(gamma_rcp, gamma_rcp, gamma_rcp));\n"
|
||||
" color1 = pow(abs(color1), float3(gamma_rcp, gamma_rcp, gamma_rcp));\n");
|
||||
|
||||
// Convert to YUV.
|
||||
code.Write(" const float3 y_const = float3(0.257, 0.504, 0.098);\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue