projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a82c0b
)
demos: Set size of uniform buffer in cube
author
Cody Northrop
<cody@lunarg.com>
Thu, 16 Jul 2015 16:29:32 +0000
(10:29 -0600)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Fri, 17 Jul 2015 16:05:23 +0000
(10:05 -0600)
demos/cube.c
patch
|
blob
|
history
diff --git
a/demos/cube.c
b/demos/cube.c
index 8cf8901b5ad93671f2964243f97917cc3afbdb41..83244ff867535f3e51bfa6a73ddbeb1342cf9974 100644
(file)
--- a/
demos/cube.c
+++ b/
demos/cube.c
@@
-1245,6
+1245,7
@@
void demo_prepare_cube_data_buffer(struct demo *demo)
memset(&buf_info, 0, sizeof(buf_info));
buf_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
buf_info.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
+ buf_info.size = sizeof(data);
err = vkCreateBuffer(demo->device, &buf_info, &demo->uniform_data.buf);
assert(!err);