summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-02-11 20:39:22 +0100
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-02-11 20:39:22 +0100
commit4ecdaa7cd08f4f3ee04cd49f8f2271636ac81e64 (patch)
tree96c95877250d63ca2d688ad472bd6a46bdc3fbb3 /include
parent35a70d71f62e41d78d68247075ce174f2b6d997a (diff)
transparencyHEADmain
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'include')
-rw-r--r--include/render/mesh.h1
-rw-r--r--include/render/renderer.h15
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;
};