diff options
| author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-10-15 17:16:32 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-28 15:36:28 -0600 |
| commit | f7ac9418d6d0df2b4d82bac4a0d9a248d37c4830 (patch) | |
| tree | e69bb08298c2b609a9e0d970ae07539ab2a40edd | |
| parent | 7a96837560458f28f09b0e7097ff62882bec26d5 (diff) | |
| download | usermoji-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.vert | 2 |
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]; |
