[vulkan] Specify subpass number in pipeline def

This gets the alias model render pass and pipeline passing validation.

I don't know why I didn't add the subpass field to the
VkGraphicsPipelineCreateInfo parser def, though it could be I simply
missed it, or I thought I wouldn't need it at the time.
This commit is contained in:
Bill Currie 2021-02-17 13:50:36 +09:00
parent 64740b0f73
commit 4245c6ad3b
2 changed files with 25 additions and 10 deletions

View file

@ -274,6 +274,7 @@
};
pipelines = {
alias_depth = {
subpass = 0;
stages = (
{
stage = vertex;
@ -312,6 +313,7 @@
//renderPass = renderpass;
};
alias_gbuf = {
subpass = 1;
stages = (
{
stage = vertex;
@ -425,16 +427,28 @@
};
colorBlend = {
logicOpEnable = false;
attachments = ({
blendEnable = true;
srcColorBlendFactor = src_alpha;
dstColorBlendFactor = one_minus_src_alpha;
colorBlendOp = add;
srcAlphaBlendFactor = src_alpha;
dstAlphaBlendFactor = one_minus_src_alpha;
alphaBlendOp = add;
colorWriteMask = r|g|b|a;
});
attachments = (
{
blendEnable = false;
srcColorBlendFactor = src_alpha;
dstColorBlendFactor = one_minus_src_alpha;
colorBlendOp = add;
srcAlphaBlendFactor = src_alpha;
dstAlphaBlendFactor = one_minus_src_alpha;
alphaBlendOp = add;
colorWriteMask = r|g|b|a;
},
{
blendEnable = false;
srcColorBlendFactor = src_alpha;
dstColorBlendFactor = one_minus_src_alpha;
colorBlendOp = add;
srcAlphaBlendFactor = src_alpha;
dstAlphaBlendFactor = one_minus_src_alpha;
alphaBlendOp = add;
colorWriteMask = r|g|b|a;
},
);
};
dynamic = {
dynamicState = ( viewport, scissor, blend_constants );

View file

@ -280,6 +280,7 @@
type = (custom, QFString, parse_VkPipelineLayout);
fields = (layout);
};
subpass = auto;
basePipelineHandle = {
type = (custom, QFString, parse_BasePipeline);
fields = (basePipelineHandle);