diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-01-30 15:01:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 15:01:55 +0100 |
commit | 9de88cb5a75f4a2ed0c32c37e964330a00811bda (patch) | |
tree | bccdd0b4df6f5bb71481ddaa17edf9d05c80d137 /src/video_core/host_shaders/vulkan_color_clear.vert | |
parent | Merge pull request #9707 from german77/clang15 (diff) | |
parent | video_core: Implement vulkan clear specified channel (diff) | |
download | yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.tar yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.tar.gz yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.tar.bz2 yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.tar.lz yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.tar.xz yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.tar.zst yuzu-9de88cb5a75f4a2ed0c32c37e964330a00811bda.zip |
Diffstat (limited to 'src/video_core/host_shaders/vulkan_color_clear.vert')
-rw-r--r-- | src/video_core/host_shaders/vulkan_color_clear.vert | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/vulkan_color_clear.vert b/src/video_core/host_shaders/vulkan_color_clear.vert new file mode 100644 index 000000000..d85883141 --- /dev/null +++ b/src/video_core/host_shaders/vulkan_color_clear.vert @@ -0,0 +1,10 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#version 460 core + +void main() { + float x = float((gl_VertexIndex & 1) << 2); + float y = float((gl_VertexIndex & 2) << 1); + gl_Position = vec4(x - 1.0, y - 1.0, 0.0, 1.0); +} |