diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-10 05:01:39 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:29 +0100 |
commit | ae8d19d17eb5448207ece99ae07507c542c6ddae (patch) | |
tree | 2238f455b633142718ea0601687fa01811b5d218 /src/video_core/host_shaders/present_bicubic.frag | |
parent | gl_texture_cache: fix scaling on upload (diff) | |
download | yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.tar yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.tar.gz yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.tar.bz2 yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.tar.lz yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.tar.xz yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.tar.zst yuzu-ae8d19d17eb5448207ece99ae07507c542c6ddae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/host_shaders/present_bicubic.frag (renamed from src/video_core/host_shaders/opengl_present_bicubic.frag) | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/opengl_present_bicubic.frag b/src/video_core/host_shaders/present_bicubic.frag index 17772095a..f3e5410e7 100644 --- a/src/video_core/host_shaders/opengl_present_bicubic.frag +++ b/src/video_core/host_shaders/present_bicubic.frag @@ -4,11 +4,22 @@ #version 460 core +#ifdef VULKAN + +#define BINDING_COLOR_TEXTURE 1 + +#else // ^^^ Vulkan ^^^ // vvv OpenGL vvv + +#define BINDING_COLOR_TEXTURE 0 + +#endif + + layout (location = 0) in vec2 frag_tex_coord; layout (location = 0) out vec4 color; -layout (binding = 1) uniform sampler2D color_texture; +layout (binding = BINDING_COLOR_TEXTURE) uniform sampler2D color_texture; vec4 cubic(float v) { vec4 n = vec4(1.0, 2.0, 3.0, 4.0) - v; |