mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
VideoCommon: fix support of stereoscopic rendering after moving d3d to SPIRV generation
This commit is contained in:
parent
993fa3bf94
commit
cad1d6ce90
3 changed files with 23 additions and 13 deletions
|
@ -909,9 +909,6 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos
|
|||
GenerateVSOutputMembers(out, api_type, uid_data->genMode_numtexgens, host_config,
|
||||
GetInterpolationQualifier(msaa, ssaa, true, true), ShaderStage::Pixel);
|
||||
|
||||
if (stereo)
|
||||
out.Write("\tflat int layer;\n");
|
||||
|
||||
out.Write("}};\n");
|
||||
}
|
||||
else
|
||||
|
@ -967,8 +964,15 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos
|
|||
{
|
||||
out.Write("\tfloat4 ocol1;\n");
|
||||
}
|
||||
if (!stereo)
|
||||
|
||||
if (host_config.backend_geometry_shaders && stereo)
|
||||
{
|
||||
out.Write("\tint layer = gl_Layer;\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
out.Write("\tint layer = 0;\n");
|
||||
}
|
||||
|
||||
out.Write("\tint4 c0 = " I_COLORS "[1], c1 = " I_COLORS "[2], c2 = " I_COLORS
|
||||
"[3], prev = " I_COLORS "[0];\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue