mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
3360578875
This splits up render pass creation so that the creation of the various resources can be tailored to the needs of the actual render pass sub-system. In addition, it gets window resizing mostly working (just some problems with incorrect rendering).
49 lines
972 B
Text
49 lines
972 B
Text
{
|
|
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;
|
|
},
|
|
);
|
|
},
|
|
);
|
|
};
|
|
}
|