mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Merge pull request #10836 from iwubcode/d3d_uint_fix
VideoCommon: fix uint shader compiler error when using d3d
This commit is contained in:
commit
9aece1810c
2 changed files with 17 additions and 7 deletions
|
@ -1093,8 +1093,9 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
|
|||
" }}\n");
|
||||
}
|
||||
|
||||
// D3D requires that the shader outputs be uint when writing to a uint render target for logic op.
|
||||
if (api_type == APIType::D3D && uid_data->uint_output)
|
||||
// Some backends require that the shader outputs be uint when writing to a uint render target for
|
||||
// logic op.
|
||||
if (uid_data->uint_output)
|
||||
{
|
||||
out.Write(" if (bpmem_rgba6_format)\n"
|
||||
" ocol0 = uint4(TevResult & 0xFC);\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue