blit.frag 570 B

123456789101112131415161718192021222324
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. /*
  5. * Build instructions:
  6. * $ glslangValidator -V $THIS_FILE -o output.spv
  7. * $ spirv-opt -O --strip-debug output.spv -o optimized.spv
  8. * $ xxd -i optimized.spv
  9. *
  10. * Then copy that bytecode to the C++ file
  11. */
  12. #version 460 core
  13. layout (location = 0) in vec2 frag_tex_coord;
  14. layout (location = 0) out vec4 color;
  15. layout (binding = 1) uniform sampler2D color_texture;
  16. void main() {
  17. color = texture(color_texture, frag_tex_coord);
  18. }