diff options
| author | Mike Schuchardt <mikes@lunarg.com> | 2020-05-07 15:33:52 -0700 |
|---|---|---|
| committer | Mike Schuchardt <mikes@lunarg.com> | 2020-05-07 17:24:56 -0700 |
| commit | 7bcbfd304f8bf079cdd477208f69da7a7f870344 (patch) | |
| tree | 9c38768f44963934b539913f2f9da63799a99e9c /cube | |
| parent | 8ee48dc62f7c0fc7b4dab7befc2f601b1873d620 (diff) | |
| download | usermoji-7bcbfd304f8bf079cdd477208f69da7a7f870344.tar.xz | |
build: Update known-good files for 1.2.140 header
Changes:
- Modify cubepp to use initializer lists for some calls because the
compiler could not deduce the correct overload from the int+pointer
array specification
- Propagate genvk.py changes from VVL
- Modify .gitattributes so generated files are checked out with LF line-endings
- Updated known-good files
- Generated new source files
Diffstat (limited to 'cube')
| -rw-r--r-- | cube/cube.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp index dda631fa..9a43ec9d 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -644,7 +644,7 @@ void Demo::cleanup() { for (uint32_t i = 0; i < swapchainImageCount; i++) { device.destroyImageView(swapchain_image_resources[i].view, nullptr); - device.freeCommandBuffers(cmd_pool, 1, &swapchain_image_resources[i].cmd); + device.freeCommandBuffers(cmd_pool, {swapchain_image_resources[i].cmd}); device.destroyBuffer(swapchain_image_resources[i].uniform_buffer, nullptr); device.unmapMemory(swapchain_image_resources[i].uniform_memory); device.freeMemory(swapchain_image_resources[i].uniform_memory, nullptr); @@ -719,7 +719,7 @@ void Demo::destroy_texture(texture_object *tex_objs) { void Demo::draw() { // Ensure no more than FRAME_LAG renderings are outstanding device.waitForFences(1, &fences[frame_index], VK_TRUE, UINT64_MAX); - device.resetFences(1, &fences[frame_index]); + device.resetFences({fences[frame_index]}); vk::Result result; do { @@ -2271,7 +2271,7 @@ void Demo::resize() { for (i = 0; i < swapchainImageCount; i++) { device.destroyImageView(swapchain_image_resources[i].view, nullptr); - device.freeCommandBuffers(cmd_pool, 1, &swapchain_image_resources[i].cmd); + device.freeCommandBuffers(cmd_pool, {swapchain_image_resources[i].cmd}); device.destroyBuffer(swapchain_image_resources[i].uniform_buffer, nullptr); device.unmapMemory(swapchain_image_resources[i].uniform_memory); device.freeMemory(swapchain_image_resources[i].uniform_memory, nullptr); |
