Lines Matching refs:device
624 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
627 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs);
636 vkDestroyImage(m_device->device(), image, NULL);
641 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem);
645 err = vkBindImageMemory(m_device->device(), image, mem, 0);
650 err = vkMapMemory(m_device->device(), mem, 0, VK_WHOLE_SIZE, 0,
659 vkDestroyImage(m_device->device(), image, NULL);
703 // err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
706 // err = vkGetImageMemoryRequirements(m_device->device(),
718 // err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem);
722 // err = vkBindImageMemory(m_device->device(), image, mem, 0);
726 // vkFreeMemory(m_device->device(), mem, NULL);
779 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
782 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs);
790 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem1);
792 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem2);
796 err = vkBindImageMemory(m_device->device(), image, mem1, 0);
801 err = vkBindImageMemory(m_device->device(), image, mem2, 0);
808 vkDestroyImage(m_device->device(), image, NULL);
809 vkFreeMemory(m_device->device(), mem1, NULL);
810 vkFreeMemory(m_device->device(), mem2, NULL);
871 vkResetFences(m_device->device(), 1, fences);
913 vkCreateImage(m_device->device(), &ici, NULL, &dsi);
924 vkCreateDepthStencilView(m_device->device(), &dsvci, NULL, &dsv);
957 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
974 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
984 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
995 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
1012 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
1013 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
1014 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
1056 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
1059 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs);
1068 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem);
1072 vkFreeMemory(m_device->device(), mem, NULL);
1075 err = vkBindImageMemory(m_device->device(), image, mem, 0);
1085 vkDestroyImage(m_device->device(), image, NULL);
1128 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
1131 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs);
1139 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem);
1143 vkDestroyImage(m_device->device(), image, NULL);
1147 err = vkBindImageMemory(m_device->device(), image, mem, 0);
1156 vkFreeMemory(m_device->device(), mem, NULL);
1411 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
1428 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
1438 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
1447 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
1448 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
1478 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
1495 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
1505 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
1509 err = vkFreeDescriptorSets(m_device->device(), ds_pool, 1, &descriptorSet);
1516 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
1517 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
1532 vkResetDescriptorPool(device(), badPool);
1607 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
1623 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
1633 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
1644 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
1673 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
1674 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
1675 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
1700 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
1716 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
1726 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
1741 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
1749 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
1750 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
1782 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
1798 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
1808 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
1819 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
1833 err = vkCreateBuffer(m_device->device(), &buffCI, NULL, &dyub);
1850 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
1924 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
1925 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
1952 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
1965 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
1976 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
1989 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2000 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
2036 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
2066 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2070 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2083 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2090 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2095 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2106 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
2113 vkAllocateDescriptorSets(m_device->device(), &alloc_info, &ds0_fs_only);
2123 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2129 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2135 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2141 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2147 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2157 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2171 err = vkCreateBuffer(m_device->device(), &buffCI, NULL, &dyub);
2199 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
2210 vkGetImageMemoryRequirements(m_device->device(), image, &memReqs);
2215 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &imageMem);
2217 err = vkBindImageMemory(m_device->device(), image, imageMem, 0);
2232 err = vkCreateImageView(m_device->device(), &image_view_create_info, NULL,
2266 vkUpdateDescriptorSets(m_device->device(), 3, descriptor_write, 0, NULL);
2337 vkDestroyPipelineLayout(m_device->device(), single_pipe_layout, NULL);
2352 vkDestroyPipelineLayout(m_device->device(), pipe_layout_one_desc, NULL);
2366 vkDestroyPipelineLayout(m_device->device(), pipe_layout_five_samp, NULL);
2430 vkDestroyPipelineLayout(m_device->device(), pipe_layout_bad_set0, NULL);
2446 vkDestroyPipelineLayout(m_device->device(), pipe_layout_fs_only, NULL);
2448 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout[i], NULL);
2450 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout_fs_only, NULL);
2451 vkFreeDescriptorSets(m_device->device(), ds_pool, 1, descriptorSet);
2452 vkDestroyBuffer(m_device->device(), dyub, NULL);
2453 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
2454 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
2492 err = vkAllocateCommandBuffers(m_device->device(), &cmd, &draw_cmd);
2513 vkFreeCommandBuffers(m_device->device(), m_commandPool, 1, &draw_cmd);
2595 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
2612 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2622 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
2632 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2672 vkCreatePipelineCache(m_device->device(), &pc_ci, NULL, &pipelineCache);
2674 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
2683 vkDestroyPipelineCache(m_device->device(), pipelineCache, NULL);
2684 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
2685 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
2686 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
2712 err = vkCreateDescriptorPool(m_device->device(),
2731 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2736 err = vkAllocateDescriptorSets(m_device->device(), ds_pool,
2748 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2814 err = vkCreatePipelineCache(m_device->device(), &pc_ci, NULL,
2817 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
2826 vkDestroyPipelineCache(m_device->device(), pipelineCache, NULL);
2827 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
2828 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
2829 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
2856 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
2871 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
2881 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
2891 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
2941 vkCreatePipelineCache(m_device->device(), &pc_ci, NULL, &pipelineCache);
2943 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
2952 vkDestroyPipelineCache(m_device->device(), pipelineCache, NULL);
2953 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
2954 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
2955 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
2983 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
2998 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
3008 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
3018 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
3070 vkCreatePipelineCache(m_device->device(), &pc_ci, NULL, &pipelineCache);
3072 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
3081 vkDestroyPipelineCache(m_device->device(), pipelineCache, NULL);
3082 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
3083 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
3084 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
3111 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
3126 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
3136 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
3146 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
3218 vkCreatePipelineCache(m_device->device(), &pc_ci, NULL, &pipelineCache);
3220 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
3239 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
3256 vkDestroyPipelineCache(m_device->device(), pipelineCache, NULL);
3257 vkDestroyPipelineLayout(m_device->device
3258 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
3259 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
3286 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
3301 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
3311 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
3321 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
3394 vkCreatePipelineCache(m_device->device(), &pc_ci, NULL, &pipelineCache);
3396 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
3415 err = vkCreateGraphicsPipelines(m_device->device(), pipelineCache, 1,
3432 vkDestroyPipelineCache(m_device->device(), pipelineCache, NULL);
3433 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
3434 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
3435 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
3695 err = vkCreateBuffer(m_device->device(), &buffCI, NULL, &ib);
3712 vkDestroyBuffer(m_device->device(), ib, NULL);
3733 vkCreateBuffer(m_device->device(), &buffCI, NULL, &ib);
3789 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
3805 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
3815 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
3839 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler);
3854 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
3863 vkDestroySampler(m_device->device(), sampler, NULL);
3864 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
3865 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
3892 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
3909 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
3919 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
3943 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler);
3960 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
3969 vkDestroySampler(m_device->device(), sampler, NULL);
3970 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
3971 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
3998 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4014 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4024 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4048 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler);
4064 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
4072 vkDestroySampler(m_device->device(), sampler, NULL);
4073 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4074 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4100 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4116 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4126 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4149 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler);
4165 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
4172 vkDestroySampler(m_device->device(), sampler, NULL);
4173 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4174 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4201 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4217 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4227 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4247 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
4255 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4256 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4282 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4298 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4308 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4332 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler);
4352 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
4360 vkDestroySampler(m_device->device(), sampler, NULL);
4361 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4362 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4392 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4413 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4423 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4447 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler);
4462 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL);
4472 vkUpdateDescriptorSets(m_device->device(), 0, NULL, 1, ©_ds_update);
4492 vkUpdateDescriptorSets(m_device->device(), 0, NULL, 1, ©_ds_update);
4513 vkUpdateDescriptorSets(m_device->device(), 0, NULL, 1, ©_ds_update);
4521 vkDestroySampler(m_device->device(), sampler, NULL);
4522 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4523 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4549 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4566 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4576 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4596 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
4621 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
4622 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4623 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4652 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4669 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4679 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4699 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
4740 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
4741 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4742 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4769 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
4786 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
4796 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
4816 err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL,
4850 vkDestroyPipelineLayout(m_device->device(), pipeline_layout, NULL);
4851 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
4852 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);
4900 err = vkCreateEvent(device(), &event_info, NULL, &event);
4903 err = vkResetEvent(device(), event);
4927 vkDestroyEvent(device(), event, NULL);
4953 vkCreateShaderModule(m_device->device(), &moduleCreateInfo, NULL, &module);
4981 vkCreateShaderModule(m_device->device(), &moduleCreateInfo, NULL, &module);
5010 vkCreateShaderModule(m_device->device(), &moduleCreateInfo, NULL, &module);
6136 vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
6247 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
6262 err = vkCreateImageView(m_device->device(), &image_view_create_info, NULL,
6303 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image);
6318 err = vkCreateImageView(m_device->device(), &image_view_create_info, NULL,
6361 vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage);
6368 vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage);
6378 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs);
6383 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem);
6386 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs);
6391 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem);
6394 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0);
6396 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0);
6428 vkDestroyImage(m_device->device(), srcImage, NULL);
6429 vkDestroyImage(m_device->device(), dstImage, NULL);
6430 vkFreeMemory(m_device->device(), srcMem, NULL);
6431 vkFreeMemory(m_device->device(), destMem, NULL);
6472 vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage);
6480 vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage);
6490 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs);
6495 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem);
6498 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs);
6503 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem);
6506 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0);
6508 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0);
6540 vkDestroyImage(m_device->device(), srcImage, NULL);
6541 vkDestroyImage(m_device->device(), dstImage, NULL);
6542 vkFreeMemory(m_device->device(), srcMem, NULL);
6543 vkFreeMemory(m_device->device(), destMem, NULL);
6579 vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage);
6586 vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage);
6596 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs);
6601 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem);
6604 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs);
6609 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem);
6612 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0);
6614 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0);
6649 vkDestroyImage(m_device->device(), srcImage, NULL);
6650 vkDestroyImage(m_device->device(), dstImage, NULL);
6651 vkFreeMemory(m_device->device(), srcMem, NULL);
6652 vkFreeMemory(m_device->device(), destMem, NULL);
6691 vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage);
6701 vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage);
6711 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs);
6716 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem);
6719 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs);
6724 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem);
6727 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0);
6729 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0);
6764 vkDestroyImage(m_device->device(), srcImage, NULL);
6765 vkDestroyImage(m_device->device(), dstImage, NULL);
6766 vkFreeMemory(m_device->device(), srcMem, NULL);
6767 vkFreeMemory(m_device->device(), destMem, NULL);
6806 vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage);
6818 vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage);
6828 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs);
6833 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem);
6836 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs);
6841 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem);
6844 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0);
6846 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0);
6881 vkDestroyImage(m_device->device(), srcImage, NULL);
6882 vkDestroyImage(m_device->device(), dstImage, NULL);
6883 vkFreeMemory(m_device->device(), srcMem, NULL);
6884 vkFreeMemory(m_device->device(), destMem, NULL);
6923 vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage);
6934 vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage);
6944 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs);
6949 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem);
6952 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs);
6957 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem);
6960 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0);
6962 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0);
6997 vkDestroyImage(m_device->device(), srcImage, NULL);
6998 vkDestroyImage(m_device->device(), dstImage, NULL);
6999 vkFreeMemory(m_device->device(), srcMem, NULL);
7000 vkFreeMemory(m_device->device(), destMem, NULL);
7030 vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool);
7046 err = vkCreateDescriptorSetLayout(m_device->device(), &ds_layout_ci, NULL,
7056 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info,
7085 vkCreateImage(m_device->device(), &image_create_info, NULL, &image_bad);
7090 err = vkCreateImage(m_device->device(), &image_create_info, NULL,
7107 err = vkCreateImageView(m_device->device(), &image_view_create_info, NULL,
7116 vkDestroyImage(m_device->device(), image_bad, NULL);
7117 vkDestroyImage(m_device->device(), image_good, NULL);
7118 vkDestroyDescriptorSetLayout(m_device->device(), ds_layout, NULL);
7119 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL);