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