What is the difference between a framebuffer and an image in Vulcan?

I knew that framebuffer is the endpoint of the rendering pipeline, and swapchain contains a lot of images. So what is the connection between these two things? Which one is the actual goal? And does the framebuffer add the final image of the current frame to the image? If so, how will this happen?

Describing this with paint or a chart will make you happy.

+4
source share
2 answers
  • VkFramebuffer+ VkRenderPassdefines the purpose of rendering.

  • Render pass determines which attachment will be written with colors.

  • VkFramebufferdetermines what VkImageViewshould be the attachment.

  • VkImageView , VkImage .

  • VkImage , VkMemory , .


, , :

  • VkMemory - N .

  • VkImage , . ( texels, ).

  • VkImageView VkImage (, stringView, arrayView whathaveyou) ( ).

  • VkFramebuffer VkImageView .

  • VkRenderPass ,

, . Vulkan Framebuffer.

Swapchain . , . . "" "".

() swapchain . AFAIK VkFramebuffer ( , , ).

( . , ...)

+12

, Vulkan, :

, , , VkFramebuffer.

, swapchain VkFramebuffer, VkMemory VkImage, VkImageView buffer VkImage .

+3

Source: https://habr.com/ru/post/1654975/


All Articles