Lines Matching defs:image

122     VkImage image;
147 VkImage image;
184 VkImage image;
319 static void demo_set_image_layout(struct demo *demo, VkImage image,
356 .image = image,
360 /* Make sure anything that was copying from this image has completed */
375 /* Make sure any Copy or CPU writes to image are flushed */
418 // happens to the previous contents of the image
428 .image = demo->buffers[demo->current_buffer].image,
475 prePresentBarrier.image = demo->buffers[demo->current_buffer].image;
502 // Get the index of the next available swapchain image:
517 // presentation engine will still present the image correctly.
525 // that the image won't be rendered to until the presentation
527 // okay to render to the image.
563 // presentation engine will still present the image correctly.
626 // Application desires to only acquire 1 image at a time (which is
717 demo->buffers[i].image = swapchainImages[i];
719 color_attachment_view.image = demo->buffers[i].image;
735 const VkImageCreateInfo image = {
757 .image = VK_NULL_HANDLE,
774 /* create image */
775 err = vkCreateImage(demo->device, &image, NULL, &demo->depth.image);
779 vkGetImageMemoryRequirements(demo->device, demo->depth.image, &mem_reqs);
794 vkBindImageMemory(demo->device, demo->depth.image, demo->depth.mem, 0);
797 demo_set_image_layout(demo, demo->depth.image, VK_IMAGE_ASPECT_DEPTH_BIT,
802 /* create image view */
803 view.image = demo->depth.image;
845 vkCreateImage(demo->device, &image_create_info, NULL, &tex_obj->image);
848 vkGetImageMemoryRequirements(demo->device, tex_obj->image, &mem_reqs);
861 err = vkBindImageMemory(demo->device, tex_obj->image, tex_obj->mem, 0);
874 vkGetImageSubresourceLayout(demo->device, tex_obj->image, &subres,
891 demo_set_image_layout(demo, tex_obj->image, VK_IMAGE_ASPECT_COLOR_BIT,
894 /* setting the image layout does not reference the actual memory so no need
901 vkDestroyImage(demo->device, tex_obj->image, NULL);
944 demo_set_image_layout(demo, staging_texture.image,
950 demo_set_image_layout(demo, demo->textures[i].image,
965 demo->setup_cmd, staging_texture.image,
966 VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, demo->textures[i].image,
969 demo_set_image_layout(demo, demo->textures[i].image,
980 assert(!"No support for B8G8R8A8_UNORM as texture image format");
1004 .image = VK_NULL_HANDLE,
1021 /* create image view */
1022 view.image = demo->textures[i].image;
2046 vkDestroyImage(demo->device, demo->textures[i].image, NULL);
2056 vkDestroyImage(demo->device, demo->depth.image, NULL);
2106 vkDestroyImage(demo->device, demo->textures[i].image, NULL);
2116 vkDestroyImage(demo->device, demo->depth.image, NULL);