Browse Source

alpha copy + barriers

pull/73/head
Allison Cunha 8 months ago
parent
commit
20d3513e83
  1. 19
      src/video_core/host_shaders/convert_b10gr11f_to_abgr8.frag

19
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);
}
Loading…
Cancel
Save