summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-22 00:21:42 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-22 00:21:42 +0100
commit1e474fb9d1c5e35c2bb8822d58556ef3358e66e9 (patch)
tree396accae302f224f19e9d347b574d2d241f67c36 /src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
parentTexture Cache: Always copy on NVIDIA. (diff)
downloadyuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.tar
yuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.tar.gz
yuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.tar.bz2
yuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.tar.lz
yuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.tar.xz
yuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.tar.zst
yuzu-1e474fb9d1c5e35c2bb8822d58556ef3358e66e9.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/host_shaders/convert_d24s8_to_abgr8.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag b/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
index 47f9c1abc..94368fb59 100644
--- a/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
+++ b/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
@@ -19,5 +19,5 @@ void main() {
lowp uint stencil_val = textureLod(stencil_tex, coord, 0).r;
highp uvec4 components =
uvec4(stencil_val, (uvec3(depth_val) >> uvec3(24u, 16u, 8u)) & 0x000000FFu);
- color = vec4(components) / (exp2(8.0) - 1.0);
+ color.abgr = vec4(components) / (exp2(8.0) - 1.0);
}