Files
eden/src/video_core/host_shaders/ssaa.frag
T
lizzie b0ac3da654 wip
2026-09-07 10:19:42 +00:00

19 lines
511 B
GLSL

// 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;
layout (binding = BINDING_COLOR_TEXTURE) uniform sampler2DMS input_texture;
void main() {
frag_color = texelFetch(input_texture, ivec2(gl_FragCoord.xy), gl_SampleID);
}