summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-08-19 02:11:45 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-08-19 04:29:46 +0200
commitf2f99a8c315ef9abfea63c14faf844296794b498 (patch)
tree5390c22be68674fd964b49a745c495f13cf71e0d /src/video_core/host_shaders
parentMerge pull request #11278 from Kelebek1/dma_sync (diff)
downloadyuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar
yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.gz
yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.bz2
yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.lz
yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.xz
yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.zst
yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.zip
Diffstat (limited to 'src/video_core/host_shaders')
-rw-r--r--src/video_core/host_shaders/CMakeLists.txt1
-rw-r--r--src/video_core/host_shaders/vulkan_depthstencil_clear.frag12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/CMakeLists.txt b/src/video_core/host_shaders/CMakeLists.txt
index e61d9af80..c4d459077 100644
--- a/src/video_core/host_shaders/CMakeLists.txt
+++ b/src/video_core/host_shaders/CMakeLists.txt
@@ -50,6 +50,7 @@ set(SHADER_FILES
vulkan_blit_depth_stencil.frag
vulkan_color_clear.frag
vulkan_color_clear.vert
+ vulkan_depthstencil_clear.frag
vulkan_fidelityfx_fsr_easu_fp16.comp
vulkan_fidelityfx_fsr_easu_fp32.comp
vulkan_fidelityfx_fsr_rcas_fp16.comp
diff --git a/src/video_core/host_shaders/vulkan_depthstencil_clear.frag b/src/video_core/host_shaders/vulkan_depthstencil_clear.frag
new file mode 100644
index 000000000..1ac177c7e
--- /dev/null
+++ b/src/video_core/host_shaders/vulkan_depthstencil_clear.frag
@@ -0,0 +1,12 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 460 core
+
+layout (push_constant) uniform PushConstants {
+ vec4 clear_depth;
+};
+
+void main() {
+ gl_FragDepth = clear_depth.x;
+}