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文字以内のものにしてください。

occlusion.vert 277B

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. }