early-access version 1452

This commit is contained in:
pineappleEA
2021-02-13 20:52:45 +01:00
parent 1e55ebc500
commit 0ea8f5d070
39 changed files with 399 additions and 329 deletions

View File

@@ -5,6 +5,8 @@ set(SHADER_FILES
convert_float_to_depth.frag
full_screen_triangle.vert
opengl_copy_bc4.comp
opengl_copy_bgr16.comp
opengl_copy_bgra.comp
opengl_present.frag
opengl_present.vert
pitch_unswizzle.comp

View File

@@ -0,0 +1,14 @@
// 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, r16ui) readonly uniform uimage2D bgr_input;
layout(binding = 1, r16ui) writeonly uniform uimage2D bgr_output;
void main() {
imageStore(bgr_output, ivec2(gl_GlobalInvocationID.xy), imageLoad(bgr_input, ivec2(gl_GlobalInvocationID.xy)));
}

View File

@@ -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 image2D bgr_input;
layout(binding = 1, rgba8) writeonly uniform image2D bgr_output;
void main() {
vec4 color = imageLoad(bgr_input, ivec2(gl_GlobalInvocationID.xy));
imageStore(bgr_output, ivec2(gl_GlobalInvocationID.xy), color.bgra);
}