diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2024-02-11 04:42:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 04:42:25 +0100 |
commit | 999ec5739d9d788bd85f4715f0be9c2ba5f79d7a (patch) | |
tree | ae537052a6d4c9f3ee64c311a885428916029e5e | |
parent | Merge pull request #12969 from german77/bcat-interface (diff) | |
parent | host_shaders: add vendor workaround for adreno drivers (diff) | |
download | yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.gz yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.bz2 yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.lz yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.xz yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.zst yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.zip |
-rw-r--r-- | src/video_core/host_shaders/vulkan_present.vert | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/video_core/host_shaders/vulkan_present.vert b/src/video_core/host_shaders/vulkan_present.vert index 249c9675a..c0e6e8537 100644 --- a/src/video_core/host_shaders/vulkan_present.vert +++ b/src/video_core/host_shaders/vulkan_present.vert @@ -19,15 +19,13 @@ layout (push_constant) uniform PushConstants { // Any member of a push constant block that is declared as an // array must only be accessed with dynamically uniform indices. ScreenRectVertex GetVertex(int index) { - switch (index) { - case 0: - default: + if (index < 1) { return vertices[0]; - case 1: + } else if (index < 2) { return vertices[1]; - case 2: + } else if (index < 3) { return vertices[2]; - case 3: + } else { return vertices[3]; } } |