aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-10-15 17:16:32 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-28 15:36:28 -0600
commitf7ac9418d6d0df2b4d82bac4a0d9a248d37c4830 (patch)
treee69bb08298c2b609a9e0d970ae07539ab2a40edd
parent7a96837560458f28f09b0e7097ff62882bec26d5 (diff)
downloadusermoji-f7ac9418d6d0df2b4d82bac4a0d9a248d37c4830.tar.xz
demos/cube: Explicitly specify std140 layout on UBOs
Without this, glslang won't actually provide the offsets and strides required by SPIR-V.
-rw-r--r--demos/cube.vert2
1 files changed, 1 insertions, 1 deletions
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];