diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-03-09 06:47:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-09 06:47:51 +0100 |
commit | daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71 (patch) | |
tree | aaa1cc96298e6e114cb72dfb517f7a000d2a467d /src/video_core/host_shaders/opengl_copy_bgra.comp | |
parent | Merge pull request #6021 from ReinUsesLisp/skip-cache-heuristic (diff) | |
parent | texture_cache: Blacklist BGRA8 copies and views on OpenGL (diff) | |
download | yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.tar yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.tar.gz yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.tar.bz2 yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.tar.lz yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.tar.xz yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.tar.zst yuzu-daf5c5060b4b2e4aa985fbfe9724eb99c51bbd71.zip |
Diffstat (limited to 'src/video_core/host_shaders/opengl_copy_bgra.comp')
-rw-r--r-- | src/video_core/host_shaders/opengl_copy_bgra.comp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/opengl_copy_bgra.comp b/src/video_core/host_shaders/opengl_copy_bgra.comp new file mode 100644 index 000000000..2571a4abf --- /dev/null +++ b/src/video_core/host_shaders/opengl_copy_bgra.comp @@ -0,0 +1,15 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#version 430 core + +layout (local_size_x = 4, local_size_y = 4) in; + +layout(binding = 0, rgba8) readonly uniform image2DArray bgr_input; +layout(binding = 1, rgba8) writeonly uniform image2DArray bgr_output; + +void main() { + vec4 color = imageLoad(bgr_input, ivec3(gl_GlobalInvocationID)); + imageStore(bgr_output, ivec3(gl_GlobalInvocationID), color.bgra); +} |