summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-12-30 06:00:48 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-12-30 06:00:48 +0100
commitae5725b70901431646342eb2d51801478d86fdca (patch)
tree174f938ca1e0b327a1b2a676b1d619dc2c6ece40 /src/video_core/host_shaders
parenthost_shaders: Add shaders to present to the swapchain (diff)
downloadyuzu-ae5725b70901431646342eb2d51801478d86fdca.tar
yuzu-ae5725b70901431646342eb2d51801478d86fdca.tar.gz
yuzu-ae5725b70901431646342eb2d51801478d86fdca.tar.bz2
yuzu-ae5725b70901431646342eb2d51801478d86fdca.tar.lz
yuzu-ae5725b70901431646342eb2d51801478d86fdca.tar.xz
yuzu-ae5725b70901431646342eb2d51801478d86fdca.tar.zst
yuzu-ae5725b70901431646342eb2d51801478d86fdca.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_blit_color_float.frag14
2 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/CMakeLists.txt b/src/video_core/host_shaders/CMakeLists.txt
index 6084984f9..5b24f9866 100644
--- a/src/video_core/host_shaders/CMakeLists.txt
+++ b/src/video_core/host_shaders/CMakeLists.txt
@@ -8,6 +8,7 @@ set(SHADER_FILES
opengl_present.frag
opengl_present.vert
pitch_unswizzle.comp
+ vulkan_blit_color_float.frag
vulkan_present.frag
vulkan_present.vert
)
diff --git a/src/video_core/host_shaders/vulkan_blit_color_float.frag b/src/video_core/host_shaders/vulkan_blit_color_float.frag
new file mode 100644
index 000000000..4a6aae410
--- /dev/null
+++ b/src/video_core/host_shaders/vulkan_blit_color_float.frag
@@ -0,0 +1,14 @@
+// Copyright 2020 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#version 450
+
+layout(binding = 0) uniform sampler2D tex;
+
+layout(location = 0) in vec2 texcoord;
+layout(location = 0) out vec4 color;
+
+void main() {
+ color = textureLod(tex, texcoord, 0);
+}