diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-04-07 16:59:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 16:59:41 +0200 |
commit | 4265372099be28590a880859bb0d1af0cb4fef72 (patch) | |
tree | 92fbcf05d6e7b3794679e43c3387d2c25cd3a4d5 /src/video_core/host_shaders/opengl_convert_s8d24.comp | |
parent | Merge pull request #8152 from liamwhite/gl-crop (diff) | |
parent | OpenGL: fix S8D24 to ABGR8 conversions (diff) | |
download | yuzu-4265372099be28590a880859bb0d1af0cb4fef72.tar yuzu-4265372099be28590a880859bb0d1af0cb4fef72.tar.gz yuzu-4265372099be28590a880859bb0d1af0cb4fef72.tar.bz2 yuzu-4265372099be28590a880859bb0d1af0cb4fef72.tar.lz yuzu-4265372099be28590a880859bb0d1af0cb4fef72.tar.xz yuzu-4265372099be28590a880859bb0d1af0cb4fef72.tar.zst yuzu-4265372099be28590a880859bb0d1af0cb4fef72.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/host_shaders/opengl_convert_s8d24.comp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/opengl_convert_s8d24.comp b/src/video_core/host_shaders/opengl_convert_s8d24.comp new file mode 100644 index 000000000..83e1ab176 --- /dev/null +++ b/src/video_core/host_shaders/opengl_convert_s8d24.comp @@ -0,0 +1,18 @@ +// Copyright 2022 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#version 430 core + +layout(local_size_x = 16, local_size_y = 8) in; + +layout(binding = 0, rgba8ui) restrict uniform uimage2D destination; +layout(location = 0) uniform uvec3 size; + +void main() { + if (any(greaterThanEqual(gl_GlobalInvocationID, size))) { + return; + } + uvec4 components = imageLoad(destination, ivec2(gl_GlobalInvocationID.xy)); + imageStore(destination, ivec2(gl_GlobalInvocationID.xy), components.wxyz); +} |