2026-06-10 08:06:09 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
#version 460
|
|
|
|
|
#extension GL_ARB_sample_shading : enable
|
|
|
|
|
|
|
|
|
|
#ifdef VULKAN
|
|
|
|
|
#define BINDING_COLOR_TEXTURE 1
|
|
|
|
|
#else // ^^^ Vulkan ^^^ // vvv OpenGL vvv
|
|
|
|
|
#define BINDING_COLOR_TEXTURE 0
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
layout (location = 0) out vec4 frag_color;
|
2026-06-10 08:34:19 +00:00
|
|
|
layout (binding = BINDING_COLOR_TEXTURE) uniform sampler2DMS input_texture;
|
2026-06-10 08:06:09 +00:00
|
|
|
|
|
|
|
|
void main() {
|
2026-06-10 08:34:19 +00:00
|
|
|
frag_color = texelFetch(input_texture, ivec2(gl_FragCoord.xy), gl_SampleID);
|
2026-06-10 08:06:09 +00:00
|
|
|
}
|