I am building a 3d renderer in C++ using Vulkan.hpp. My rendering pipeline currently has…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
I am building a 3d renderer in C++ using Vulkan.hpp. My rendering pipeline currently has several render passes that is uses for geometry, lighting, shadows and post-processing, such as bloom. Currently the geometry and lighting passes utilise Vulkan's subpass functionality. However, given I want to implement SSAO, I need to convert this into a traditional multipass approach. Right now the renderer uses a couple of different ways to transfer information between passes. The bloom process will output images that are then read into the following render pass through a descriptor set, but when transferring information between the geometry and lighting passes it uses framebuffer attachments. Although this is somewhat necessary given the current subpass functionality, if I am moving to a new approach it may not be required. So that leaves me with the question, what are the pros and cons of using framebuffer attachments or descriptor set inputs to transfer information between render passes and is there a generally preferred approach?
- Assistant
- User
Based on your explanation, I am now considering using a mix depending mostly on the nature of the render pass that is to consume the data. My considered approach is as follows:
Geometry pass (Start of pipeline so all inputs with be through descriptor sets) SSAO pass (Takes image output from geometry pass and read through descriptor sets) - Note SSAO will likely require multiple render passes that will all use descriptor set inputs. Lighting pass (Geometry and SSAO outputs as framebuffer attachments. Shadows as descriptor set inputs) Bloom pass (All information through descriptor sets due to resolution modification requirements) Consolidation and HDR pass (Framebuffer attachments for Lighting and Bloom outputs. Descriptor sets for any additional overlays)
Does this approach seem sensible? Given I am yet to implement SSAO, is there any reason why it might be difficult to implement using framebuffer attachments over descriptor sets?
- Assistant