Lines Matching defs:depth
28 * Draw a textured triangle with depth testing. This is written against Intel
187 } depth;
772 demo->depth.format = depth_format;
775 err = vkCreateImage(demo->device, &image, NULL, &demo->depth.image);
779 vkGetImageMemoryRequirements(demo->device, demo->depth.image, &mem_reqs);
789 err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &demo->depth.mem);
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,
803 view.image = demo->depth.image;
804 err = vkCreateImageView(demo->device, &view, NULL, &demo->depth.view);
1156 .format = demo->depth.format,
1410 attachments[1] = demo->depth.view;
2055 vkDestroyImageView(demo->device, demo->depth.view, NULL);
2056 vkDestroyImage(demo->device, demo->depth.image, NULL);
2057 vkFreeMemory(demo->device, demo->depth.mem, NULL);
2115 vkDestroyImageView(demo->device, demo->depth.view, NULL);
2116 vkDestroyImage(demo->device, demo->depth.image, NULL);
2117 vkFreeMemory(demo->device, demo->depth.mem, NULL);