kiba-engine
kiba
renderer
vulkan
renderpass.c
1
#include <kiba/renderer/vulkan/renderpass.h>
2
3
#include <kiba/renderer/vulkan/depth.h>
4
5
b8 vulkan_renderpass_create(
vulkan_context
*context) {
6
/*
7
struct vulkan_renderpass_key key = {
8
.depth_stencil_set = true,
9
.depth_stencil =
10
{
11
.base =
12
{
13
.format = vulkan_depth_fitting_format(context),
14
.layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
15
.ops = 0,
16
},.stencil_ops = 0,
17
},
18
};
19
key.colors[key.color_count++] = (struct vulkan_color_attachment_key){
20
.base =
21
{
22
.format = context->swap_chain.requirements.format.format,
23
.layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
24
.ops = GPU_ATTACHMENT_OP_STORE,
25
},
26
};
27
28
return vk_renderpass_create(context, key, &context->pipeline.renderpass);
29
*/
30
UNUSED
(context);
31
return
false
;
32
}
33
34
void
vulkan_renderpass_destroy(
vulkan_context
*context) {
35
vkDestroyRenderPass(context->device.logical, context->pipeline.renderpass, &context->alloc.vulkan_callbacks);
36
}
UNUSED
#define UNUSED(x)
Mark parameter as unused.
Definition:
defines.h:21
vulkan_context
Definition:
context.h:90
Generated by
1.9.1