alpha copy + barriers

This commit is contained in:
Allison Cunha 2025-07-16 23:03:11 -03:00
parent 108daeeb39
commit 20d3513e83

View file

@ -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);
}