third_party/spirv-cross/shaders-msl/vert/no-disable-vertex-out.frag-output.vert
raw| 1 | #version 400 |
| 2 | #extension GL_ARB_separate_shader_objects : enable |
| 3 | #extension GL_ARB_shading_language_420pack : enable |
| 4 | layout(std140, binding = 0) uniform buf { |
| 5 | mat4 MVP; |
| 6 | vec4 position[12*3]; |
| 7 | vec4 attr[12*3]; |
| 8 | } ubuf; |
| 9 | layout (location = 0) out vec4 texcoord; |
| 10 | layout (location = 1) out vec3 frag_pos; |
| 11 | void main() |
| 12 | { |
| 13 | texcoord = ubuf.attr[gl_VertexIndex]; |
| 14 | gl_Position = ubuf.MVP * ubuf.position[gl_VertexIndex]; |
| 15 | frag_pos = gl_Position.xyz; |
| 16 | } |