diff options
| author | 2023-08-19 01:11:45 +0100 | |
|---|---|---|
| committer | 2023-08-19 03:29:46 +0100 | |
| commit | f2f99a8c315ef9abfea63c14faf844296794b498 (patch) | |
| tree | 5390c22be68674fd964b49a745c495f13cf71e0d /src/video_core/host_shaders | |
| parent | Merge pull request #11278 from Kelebek1/dma_sync (diff) | |
| download | yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.gz yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.tar.xz yuzu-f2f99a8c315ef9abfea63c14faf844296794b498.zip | |
Masked depthstencil clears
Diffstat (limited to 'src/video_core/host_shaders')
| -rw-r--r-- | src/video_core/host_shaders/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/video_core/host_shaders/vulkan_depthstencil_clear.frag | 12 |
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 | |||
| 50 | vulkan_blit_depth_stencil.frag | 50 | vulkan_blit_depth_stencil.frag |
| 51 | vulkan_color_clear.frag | 51 | vulkan_color_clear.frag |
| 52 | vulkan_color_clear.vert | 52 | vulkan_color_clear.vert |
| 53 | vulkan_depthstencil_clear.frag | ||
| 53 | vulkan_fidelityfx_fsr_easu_fp16.comp | 54 | vulkan_fidelityfx_fsr_easu_fp16.comp |
| 54 | vulkan_fidelityfx_fsr_easu_fp32.comp | 55 | vulkan_fidelityfx_fsr_easu_fp32.comp |
| 55 | vulkan_fidelityfx_fsr_rcas_fp16.comp | 56 | 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 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #version 460 core | ||
| 5 | |||
| 6 | layout (push_constant) uniform PushConstants { | ||
| 7 | vec4 clear_depth; | ||
| 8 | }; | ||
| 9 | |||
| 10 | void main() { | ||
| 11 | gl_FragDepth = clear_depth.x; | ||
| 12 | } | ||