mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
2cee2f2ab8
When working, this will handle the output to the swap-chain images and any final post-processing effects (gamma correction, screen scaling, etc). However, currently the screen is just black because the image for getting the main render pass output isn't hooked up yet.
90 lines
1.7 KiB
Text
90 lines
1.7 KiB
Text
{
|
|
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 = {
|
|
color = {
|
|
@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 = {
|
|
color = {
|
|
@inherit = $properties.flat_color_view_template;
|
|
image = color;
|
|
format = $properties.images.color.format;
|
|
};
|
|
};
|
|
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;
|
|
},
|
|
);
|
|
},
|
|
);
|
|
};
|
|
}
|