From f7ac9418d6d0df2b4d82bac4a0d9a248d37c4830 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 15 Oct 2015 17:16:32 -0700 Subject: demos/cube: Explicitly specify std140 layout on UBOs Without this, glslang won't actually provide the offsets and strides required by SPIR-V. --- demos/cube.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/cube.vert b/demos/cube.vert index 091ff51b..cd22fbe0 100644 --- a/demos/cube.vert +++ b/demos/cube.vert @@ -4,7 +4,7 @@ #version 140 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable -layout(binding = 0) uniform buf { +layout(std140, binding = 0) uniform buf { mat4 MVP; vec4 position[12*3]; vec4 attr[12*3]; -- cgit v1.2.3