Masked depthstencil clears
This commit is contained in:
parent
ae1421265a
commit
f2f99a8c31
5 changed files with 132 additions and 9 deletions
|
@ -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
|
||||
|
|
12
src/video_core/host_shaders/vulkan_depthstencil_clear.frag
Normal file
12
src/video_core/host_shaders/vulkan_depthstencil_clear.frag
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue