From 20d3513e8378673a42ca8cc14af661cb5298474c Mon Sep 17 00:00:00 2001 From: Allison Cunha Date: Wed, 16 Jul 2025 23:03:11 -0300 Subject: [PATCH] alpha copy + barriers --- .../convert_b10gr11f_to_abgr8.frag | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/video_core/host_shaders/convert_b10gr11f_to_abgr8.frag diff --git a/src/video_core/host_shaders/convert_b10gr11f_to_abgr8.frag b/src/video_core/host_shaders/convert_b10gr11f_to_abgr8.frag new file mode 100644 index 0000000000..f3ac16da20 --- /dev/null +++ b/src/video_core/host_shaders/convert_b10gr11f_to_abgr8.frag @@ -0,0 +1,19 @@ +// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#version 450 + +layout(binding = 0) uniform sampler2D tex; + +layout(push_constant) uniform PushConstants { + uniform vec2 tex_scale; + uniform vec2 tex_offset; +}; + +layout(location = 0) out vec4 color; + +void main() { + vec2 coord = gl_FragCoord.xy / tex_scale * textureSize(tex, 0); + vec4 fetch = texelFetch(tex, ivec2(coord), 0); + color = vec4(fetch.rgb, 1.0); +} \ No newline at end of file