2022-11-22 08:47:36 +00:00
|
|
|
{
|
|
|
|
flat_color_image_template = {
|
|
|
|
imageType = `2d;
|
|
|
|
samples = 1;
|
|
|
|
extent = {
|
|
|
|
width = $output.extent.width;
|
|
|
|
height = $output.extent.height;
|
|
|
|
depth = 1;
|
|
|
|
};
|
|
|
|
mipLevels = 1;
|
|
|
|
arrayLayers = 1;
|
|
|
|
tiling = optimal;
|
|
|
|
usage = color_attachment|sampled;
|
|
|
|
initialLayout = undefined;
|
|
|
|
};
|
|
|
|
images = {
|
2022-11-25 02:07:08 +00:00
|
|
|
ocolor = {
|
2022-11-22 08:47:36 +00:00
|
|
|
@inherit = $properties.flat_color_image_template;
|
|
|
|
format = r16g16b16a16_sfloat;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
flat_color_view_template = {
|
|
|
|
viewType = VK_IMAGE_VIEW_TYPE_2D;
|
|
|
|
components = {
|
|
|
|
r = identity;
|
|
|
|
g = identity;
|
|
|
|
b = identity;
|
|
|
|
a = identity;
|
|
|
|
};
|
|
|
|
subresourceRange = {
|
|
|
|
aspectMask = color;
|
|
|
|
levelCount = 1;
|
|
|
|
layerCount = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
imageViews = {
|
2022-11-25 02:07:08 +00:00
|
|
|
ocolor = {
|
2022-11-22 08:47:36 +00:00
|
|
|
@inherit = $properties.flat_color_view_template;
|
2022-11-25 02:07:08 +00:00
|
|
|
image = ocolor;
|
|
|
|
format = $properties.images.ocolor.format;
|
2022-11-22 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
framebuffer = {
|
|
|
|
renderPass = output;
|
|
|
|
attachments = ($output.view);
|
|
|
|
width = $output.extent.width;
|
|
|
|
height = $output.extent.height;
|
|
|
|
layers = 1;
|
|
|
|
};
|
|
|
|
clearValues = (
|
|
|
|
{ color = "[0, 0, 0, 1]"; }, // output
|
|
|
|
);
|
|
|
|
attachment_template = {
|
|
|
|
samples = 1;
|
|
|
|
loadOp = dont_care;
|
|
|
|
storeOp = dont_care;
|
|
|
|
stencilLoadOp = dont_care;
|
|
|
|
stencilStoreOp = dont_care;
|
|
|
|
initialLayout = undefined;
|
|
|
|
finalLayout = color_attachment_optimal;
|
|
|
|
};
|
|
|
|
info = {
|
|
|
|
color = "[0.9, 0.9, 0.9, 1]";
|
|
|
|
subpass_info = (
|
|
|
|
{ name = compose; color = "[ 0.9, 0.9, 0.9, 1]" },
|
|
|
|
);
|
|
|
|
};
|
|
|
|
renderpass = {
|
|
|
|
attachments = (
|
|
|
|
{
|
|
|
|
@inherit = $properties.attachment_template;
|
|
|
|
format = $output.format;
|
|
|
|
loadOp = clear;
|
|
|
|
storeOp = store;
|
|
|
|
finalLayout = present_src_khr;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
subpasses = (
|
|
|
|
{ // 0 output
|
|
|
|
pipelineBindPoint = graphics;
|
|
|
|
colorAttachments = (
|
|
|
|
{ // output
|
|
|
|
attachment = 0;
|
|
|
|
layout = color_attachment_optimal;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
}
|