summaryrefslogblamecommitdiffstats
path: root/src/video_core/renderer_vulkan/shaders/blit.frag
blob: a06ecd24aa454f17b82c9669e6704809010ed268 (plain) (tree)























                                                           
// Copyright 2019 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

/*
 * Build instructions:
 * $ glslangValidator -V $THIS_FILE -o output.spv
 * $ spirv-opt -O --strip-debug output.spv -o optimized.spv
 * $ xxd -i optimized.spv
 *
 * Then copy that bytecode to the C++ file
 */

#version 460 core

layout (location = 0) in vec2 frag_tex_coord;

layout (location = 0) out vec4 color;

layout (binding = 1) uniform sampler2D color_texture;

void main() {
    color = texture(color_texture, frag_tex_coord);
}