Binary that renders a triangle using Vulkan, scans the resulting image to a PNG, and makes an occlusion query to determine the number of fragments shaded. To be used in developing Turnip.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. layout(location = 0) out vec3 fragColor;
  4. vec2 positions[3] = vec2[](
  5. vec2(0.0, -0.5),
  6. vec2(0.5, 0.5),
  7. vec2(-0.5, 0.5)
  8. );
  9. void main() {
  10. gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
  11. }