aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host_shaders/blit_depth_msaa.frag
blob: 9e955d471e7669c028d2d214e48aa8d8a8650c06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#version 450 core

layout(binding = 0) uniform sampler2DMS depth_tex;

layout(location = 0) in vec2 texcoord;

void main() {
    gl_FragDepth = texelFetch(depth_tex, ivec2(texcoord), gl_SampleID).r;
}