SPIRV-Cross/reference/shaders/vulkan/vert/vulkan-vertex.vk.vert
Hans-Kristian Arntzen e67f6f85a4 Defer parenthesis generation until needed.
Previously, we would generate parentheses proactively when generating
binary ops, however, this leads to uglier code and hits warnings in
compilers when used as a conditional.
2016-12-05 10:56:54 +01:00

10 lines
183 B
GLSL

#version 310 es
uniform int SPIRV_Cross_BaseInstance;
void main()
{
gl_Position = vec4(1.0, 2.0, 3.0, 4.0) * float(gl_VertexID + (gl_InstanceID + SPIRV_Cross_BaseInstance));
}