diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/render/mesh.h | 1 | ||||
-rw-r--r-- | include/render/renderer.h | 15 |
2 files changed, 11 insertions, 5 deletions
diff --git a/include/render/mesh.h b/include/render/mesh.h index aed4836..bf8c1ee 100644 --- a/include/render/mesh.h +++ b/include/render/mesh.h @@ -21,6 +21,7 @@ struct ubo { mat4x4 model; mat4x4 view; mat4x4 proj; + uint32_t max_frags; }; struct vertex { diff --git a/include/render/renderer.h b/include/render/renderer.h index bae799d..2c764ca 100644 --- a/include/render/renderer.h +++ b/include/render/renderer.h @@ -62,8 +62,6 @@ struct renderer { } images; } swapchain; - VkRenderPass render_pass; - struct { VkCommandPool pool; VkCommandBuffer buffers[MAX_FRAMES]; @@ -72,6 +70,7 @@ struct renderer { struct { VkPipelineLayout layout; VkPipeline gfx; + VkPipeline blend; } pipeline; struct { @@ -92,10 +91,16 @@ struct renderer { void *data; } uniform[MAX_FRAMES]; - VkSampler sampler; - VkSampleCountFlagBits msaa_samples; + VkRenderPass render_pass; + VkRenderPass blend_pass; + VkFramebuffer blend_framebuffer[MAX_FRAMES]; + + struct buffer node[MAX_FRAMES]; + struct buffer count[MAX_FRAMES]; + struct image head[MAX_FRAMES]; + VkImageView head_view[MAX_FRAMES]; + uint32_t max_count; - uint32_t mip_levels; uint32_t current_frame; }; |