aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host_shaders
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2023-01-05 12:27:41 +0800
committerFeng Chen <vonchenplus@gmail.com>2023-01-05 12:41:28 +0800
commit1e8cee2ddfeb87d4501f66197625a31c09b57e48 (patch)
tree1a0a5c62497e765222354825bdea05b54398747e /src/video_core/host_shaders
parentb78328f19a54964ef6874281d1a4d6b6ad1c34d9 (diff)
video_core: Implement maxwell3d draw texture method
Diffstat (limited to 'src/video_core/host_shaders')
-rw-r--r--src/video_core/host_shaders/blit_color_float.frag13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/blit_color_float.frag b/src/video_core/host_shaders/blit_color_float.frag
new file mode 100644
index 000000000..c0c832296
--- /dev/null
+++ b/src/video_core/host_shaders/blit_color_float.frag
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#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);
+}