Hello大家好呀,最近忙着搬家一直没有更新相关笔记,最近终于闲了一会,赶紧把之前漏掉的部分补上,废话不多说了。
前文链接
回顾Vulkan RenderPass流程与重要对象
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902092051.png)
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902095243.png)
RenderPass
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902171550.png)
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902175787.png)
Vulkan RenderPass中主要定义了两个部分:VkAttachmentDescription以及VkSubpassDescription。
Frame Buffer
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902262188.png)
Buffer
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902301492.png)
Pipeline
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902303421.png)
Pipeline中需要定义的东西非常多,包括:Vertex输入/光栅化进程/深度检测方式/颜色混合方式/Pipeline Layout等等。
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902340986.png)
Image
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061902482248.png)
PipelineLayout
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061906534848.png)
Vulkan内存管理
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061906575643.png)
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061906543623.png)
Vulkan中内存管理方式相对复杂,需要自己判断绑定内存的类型和方式,也可以借助AMD的vma工具库来实现。
Staging Buffer
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061907223185.png)
Staging buffer中存储的是频繁从CPU拷贝到GPU中的数据。
CommandBuffer
![GAMES106 - Learn Vulkan (3)-计算机图形学技术学习](https://tajourney.games/wp-content/uploads/2023/06/2023061907435646.png)