Lines Matching defs:framebuffer
1598 * framebuffer and therefore we can't use the same mechanism we use
1599 * for framebuffer attachments. Instead, we should probably have to
2640 struct v3dv_framebuffer *framebuffer;
2644 size_t size = sizeof(*framebuffer) +
2646 framebuffer = vk_object_zalloc(&device->vk, pAllocator, size,
2648 if (framebuffer == NULL)
2651 framebuffer->width = pCreateInfo->width;
2652 framebuffer->height = pCreateInfo->height;
2653 framebuffer->layers = pCreateInfo->layers;
2654 framebuffer->has_edge_padding = true;
2660 framebuffer->attachment_count = pCreateInfo->attachmentCount;
2661 framebuffer->color_attachment_count = 0;
2662 for (uint32_t i = 0; i < framebuffer->attachment_count; i++) {
2664 framebuffer->attachments[i] =
2666 if (framebuffer->attachments[i]->vk.aspects & VK_IMAGE_ASPECT_COLOR_BIT)
2667 framebuffer->color_attachment_count++;
2672 framebuffer->color_attachment_count++;
2677 *pFramebuffer = v3dv_framebuffer_to_handle(framebuffer);