Example application for subpasses in Vulkan.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415
  1. #version 450
  2. // Fill the entire screen
  3. vec3 positions[6] = vec3[](
  4. vec3(-1.0, -1.0, 0.5),
  5. vec3(1.0, -1.0, 0.5),
  6. vec3(-1.0, 1.0, 0.5),
  7. vec3(1.0, -1.0, 0.5),
  8. vec3(1.0, 1.0, 0.5),
  9. vec3(-1.0, 1.0, 0.5)
  10. );
  11. void main() {
  12. gl_Position = vec4(positions[gl_VertexIndex], 1.0);
  13. }