2020-07-16 06:42:49 +00:00
|
|
|
{
|
2021-01-05 05:15:35 +00:00
|
|
|
shaderModules = {
|
2020-12-23 16:36:17 +00:00
|
|
|
// specify shader modules to load into memory
|
2021-01-05 05:15:35 +00:00
|
|
|
// key is the name of the module for referecy by the pipeline
|
|
|
|
// value the path to the spv file to load
|
|
|
|
// $shader refers to the shader install path
|
|
|
|
// $builtin refers to compiled-in shaders
|
|
|
|
passthrough = $builtin/passthrough.vert;
|
|
|
|
pushcolor = $builtin/pushcolor.frag;
|
2021-01-10 06:52:27 +00:00
|
|
|
twodv = $builtin/twod.vert;
|
|
|
|
twodf = $builtin/twod.frag;
|
2021-01-19 16:25:54 +00:00
|
|
|
quakebspv = $builtin/quakebsp.vert;
|
|
|
|
quakebspf = $builtin/quakebsp.frag;
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
samplers = {
|
|
|
|
quakepic = {
|
|
|
|
magFilter = nearest;
|
|
|
|
minFilter = nearest;
|
|
|
|
mipmapMode = nearest;
|
|
|
|
addressModeU = clamp_to_edge;
|
|
|
|
addressModeV = clamp_to_edge;
|
|
|
|
addressModeW = clamp_to_edge;
|
|
|
|
mipLodBias = 0;
|
2021-01-12 04:07:51 +00:00
|
|
|
anisotropyEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
maxAnisotropy = 0;
|
2021-01-12 04:07:51 +00:00
|
|
|
compareEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
compareOp = always;
|
|
|
|
minLod = 0;
|
2021-01-12 02:27:41 +00:00
|
|
|
maxLod = 0;
|
2021-01-10 06:52:27 +00:00
|
|
|
borderColor = float_transparent_black;
|
2021-01-12 04:51:41 +00:00
|
|
|
unnormalizedCoordinates = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
2021-01-20 17:13:40 +00:00
|
|
|
quakebsp = {
|
|
|
|
magFilter = linear;
|
|
|
|
minFilter = linear;
|
|
|
|
mipmapMode = linear;
|
|
|
|
addressModeU = repeat;
|
|
|
|
addressModeV = repeat;
|
|
|
|
addressModeW = repeat;
|
|
|
|
mipLodBias = 0;
|
|
|
|
anisotropyEnable = false;
|
|
|
|
maxAnisotropy = 0;
|
|
|
|
compareEnable = false;
|
|
|
|
compareOp = always;
|
|
|
|
minLod = 0;
|
2021-01-21 12:24:54 +00:00
|
|
|
maxLod = 4;
|
2021-01-20 17:13:40 +00:00
|
|
|
borderColor = float_transparent_black;
|
|
|
|
unnormalizedCoordinates = false;
|
|
|
|
};
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
descriptorPools = {
|
|
|
|
twod = {
|
|
|
|
flags = 0;
|
2021-01-16 12:24:42 +00:00
|
|
|
maxSets = $framebuffers.size;
|
2021-01-10 06:52:27 +00:00
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = uniform_buffer;
|
2021-01-16 12:24:42 +00:00
|
|
|
descriptorCount = $framebuffers.size;
|
2021-01-10 06:52:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type = combined_image_sampler;
|
2021-01-16 12:24:42 +00:00
|
|
|
descriptorCount = $framebuffers.size;
|
2021-01-10 06:52:27 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-01-05 05:15:35 +00:00
|
|
|
};
|
2021-01-04 08:36:11 +00:00
|
|
|
setLayouts = {
|
2021-01-10 06:52:27 +00:00
|
|
|
twod = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = uniform_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = vertex;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-01-19 16:25:54 +00:00
|
|
|
quakebsp = {
|
2021-01-21 03:39:08 +00:00
|
|
|
flags = push_descriptor;
|
2021-01-19 16:25:54 +00:00
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = uniform_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = vertex;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 2;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 3;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
2021-01-23 11:42:53 +00:00
|
|
|
{
|
2021-01-19 16:25:54 +00:00
|
|
|
binding = 4;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
2021-01-21 05:37:39 +00:00
|
|
|
{
|
2021-01-19 16:25:54 +00:00
|
|
|
binding = 5;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
2021-01-23 11:42:53 +00:00
|
|
|
},
|
2021-01-19 16:25:54 +00:00
|
|
|
);
|
|
|
|
};
|
2021-01-04 08:36:11 +00:00
|
|
|
something = {
|
|
|
|
flags = 0;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = sampled_image;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
|
|
|
descriptorType = uniform_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = vertex;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
pipelineLayouts = {
|
2021-01-10 06:52:27 +00:00
|
|
|
twod = {
|
|
|
|
setLayouts = (twod);
|
|
|
|
};
|
2021-01-19 16:25:54 +00:00
|
|
|
quakebsp = {
|
|
|
|
setLayouts = (quakebsp);
|
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = vertex;
|
|
|
|
offset = 0;
|
|
|
|
size = "16 * 4";
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
2021-01-20 17:13:40 +00:00
|
|
|
offset = 64;
|
2021-01-19 16:25:54 +00:00
|
|
|
size = 32;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-01-04 08:36:11 +00:00
|
|
|
something = {
|
|
|
|
setLayouts = (something);
|
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
|
|
|
offset = 0;
|
|
|
|
size = "4 * 4";
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
2021-01-10 06:52:27 +00:00
|
|
|
pipelines = {
|
2021-01-19 16:25:54 +00:00
|
|
|
quakebsp.main = {
|
|
|
|
stages = (
|
|
|
|
{ stage = vertex; name = main; module = quakebspv; },
|
|
|
|
{ stage = fragment; name = main; module = quakebspf; },
|
|
|
|
);
|
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
2021-01-20 17:13:40 +00:00
|
|
|
stride = "2 * 4 * 4";
|
2021-01-19 16:25:54 +00:00
|
|
|
inputRate = vertex;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{
|
|
|
|
location = 0;
|
2021-01-23 11:42:53 +00:00
|
|
|
binding = 0;
|
|
|
|
format = r32g32b32a32_sfloat;
|
|
|
|
offset = 0;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
location = 1;
|
|
|
|
binding = 0;
|
|
|
|
format = r32g32b32a32_sfloat;
|
|
|
|
offset = 16;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
inputAssembly = {
|
|
|
|
topology = triangle_fan;
|
|
|
|
primitiveRestartEnable = true;
|
|
|
|
};
|
|
|
|
viewport = {
|
|
|
|
viewports = (
|
|
|
|
{
|
|
|
|
x = 0; y = 0;
|
|
|
|
width = 640; height = 480;
|
|
|
|
minDepth = 0; maxDepth = 1;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
scissors = (
|
|
|
|
{
|
|
|
|
offset = { x = 0; y = 0 };
|
|
|
|
extent = { width = 640; height = 480; };
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
rasterization = {
|
|
|
|
depthClampEnable = false;
|
|
|
|
rasterizerDiscardEnable = false;
|
|
|
|
polygonMode = fill;
|
|
|
|
cullMode = back;
|
|
|
|
frontFace = clockwise;
|
|
|
|
depthBiasEnable = false;
|
|
|
|
lineWidth = 1;
|
|
|
|
};
|
|
|
|
multisample = {
|
|
|
|
rasterizationSamples = $msaaSamples;
|
|
|
|
sampleShadingEnable = false;
|
|
|
|
minSampleShading = 0.5f;
|
|
|
|
alphaToCoverageEnable = false;
|
|
|
|
alphaToOneEnable = false;
|
|
|
|
};
|
|
|
|
depthStencil = {
|
|
|
|
depthTestEnable = true;
|
|
|
|
depthWriteEnable = true;
|
|
|
|
depthCompareOp = less_or_equal;
|
|
|
|
depthBoundsTestEnable = false;
|
|
|
|
stencilTestEnable = false;
|
|
|
|
};
|
|
|
|
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;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor, blend_constants );
|
|
|
|
};
|
|
|
|
layout = quakebsp;
|
|
|
|
//renderPass = renderpass;
|
|
|
|
};
|
|
|
|
quakebsp.skysheet = {
|
|
|
|
stages = (
|
|
|
|
{ stage = vertex; name = main; module = quakebspv; },
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = quakebspf;
|
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
{ size = 4; offset = 0; constantID = 1; },
|
|
|
|
{ size = 4; offset = 0; constantID = 2; },
|
|
|
|
{ size = 4; offset = 4; constantID = 3; },
|
|
|
|
);
|
|
|
|
data = <00000000ffffffff>;
|
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
stride = "2 * 4 * 4";
|
|
|
|
inputRate = vertex;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{
|
|
|
|
location = 0;
|
2021-01-19 16:25:54 +00:00
|
|
|
binding = 0;
|
|
|
|
format = r32g32b32a32_sfloat;
|
|
|
|
offset = 0;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
location = 1;
|
|
|
|
binding = 0;
|
|
|
|
format = r32g32b32a32_sfloat;
|
2021-01-21 17:20:32 +00:00
|
|
|
offset = 16;
|
2021-01-19 16:25:54 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
inputAssembly = {
|
|
|
|
topology = triangle_fan;
|
|
|
|
primitiveRestartEnable = true;
|
|
|
|
};
|
|
|
|
viewport = {
|
|
|
|
viewports = (
|
|
|
|
{
|
|
|
|
x = 0; y = 0;
|
|
|
|
width = 640; height = 480;
|
|
|
|
minDepth = 0; maxDepth = 1;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
scissors = (
|
|
|
|
{
|
|
|
|
offset = { x = 0; y = 0 };
|
|
|
|
extent = { width = 640; height = 480; };
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
rasterization = {
|
|
|
|
depthClampEnable = false;
|
|
|
|
rasterizerDiscardEnable = false;
|
|
|
|
polygonMode = fill;
|
|
|
|
cullMode = back;
|
|
|
|
frontFace = clockwise;
|
|
|
|
depthBiasEnable = false;
|
|
|
|
lineWidth = 1;
|
|
|
|
};
|
|
|
|
multisample = {
|
|
|
|
rasterizationSamples = $msaaSamples;
|
|
|
|
sampleShadingEnable = false;
|
|
|
|
minSampleShading = 0.5f;
|
|
|
|
alphaToCoverageEnable = false;
|
|
|
|
alphaToOneEnable = false;
|
|
|
|
};
|
|
|
|
depthStencil = {
|
|
|
|
depthTestEnable = true;
|
|
|
|
depthWriteEnable = true;
|
|
|
|
depthCompareOp = less_or_equal;
|
|
|
|
depthBoundsTestEnable = false;
|
|
|
|
stencilTestEnable = false;
|
|
|
|
};
|
|
|
|
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;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor, blend_constants );
|
|
|
|
};
|
|
|
|
layout = quakebsp;
|
|
|
|
//renderPass = renderpass;
|
|
|
|
};
|
2021-01-10 06:52:27 +00:00
|
|
|
twod = {
|
|
|
|
stages = (
|
|
|
|
{ stage = vertex; name = main; module = twodv; },
|
|
|
|
{ stage = fragment; name = main; module = twodf; },
|
2021-01-05 14:42:30 +00:00
|
|
|
);
|
2021-01-10 06:52:27 +00:00
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
stride = "2 * 4 * 4";
|
|
|
|
inputRate = vertex;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{
|
|
|
|
location = 0;
|
|
|
|
binding = 0;
|
2021-01-12 02:27:41 +00:00
|
|
|
format = r32g32_sfloat;
|
2021-01-10 06:52:27 +00:00
|
|
|
offset = 0;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
location = 1;
|
|
|
|
binding = 0;
|
2021-01-12 04:51:41 +00:00
|
|
|
format = r32g32_sfloat;
|
2021-01-12 02:27:41 +00:00
|
|
|
offset = 8;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
location = 2;
|
|
|
|
binding = 0;
|
2021-01-10 06:52:27 +00:00
|
|
|
format = r32g32b32a32_sfloat;
|
2021-01-12 02:27:41 +00:00
|
|
|
offset = 16;
|
2021-01-10 06:52:27 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
inputAssembly = {
|
2021-01-12 02:27:41 +00:00
|
|
|
topology = triangle_strip;
|
2021-01-12 04:07:51 +00:00
|
|
|
primitiveRestartEnable = true;
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
viewport = {
|
|
|
|
viewports = (
|
|
|
|
{
|
|
|
|
x = 0; y = 0;
|
|
|
|
width = 640; height = 480;
|
|
|
|
minDepth = 0; maxDepth = 1;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
scissors = (
|
|
|
|
{
|
|
|
|
offset = { x = 0; y = 0 };
|
|
|
|
extent = { width = 640; height = 480; };
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
rasterization = {
|
2021-01-12 04:07:51 +00:00
|
|
|
depthClampEnable = false;
|
|
|
|
rasterizerDiscardEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
polygonMode = fill;
|
|
|
|
cullMode = back;
|
|
|
|
frontFace = counter_clockwise;
|
2021-01-12 04:07:51 +00:00
|
|
|
depthBiasEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
lineWidth = 1;
|
|
|
|
};
|
|
|
|
multisample = {
|
|
|
|
rasterizationSamples = $msaaSamples;
|
2021-01-12 04:07:51 +00:00
|
|
|
sampleShadingEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
minSampleShading = 0.5f;
|
2021-01-12 04:07:51 +00:00
|
|
|
alphaToCoverageEnable = false;
|
|
|
|
alphaToOneEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
depthStencil = {
|
2021-01-12 04:07:51 +00:00
|
|
|
depthTestEnable = true;
|
|
|
|
depthWriteEnable = true;
|
2021-01-13 15:44:34 +00:00
|
|
|
depthCompareOp = less_or_equal;
|
2021-01-12 04:07:51 +00:00
|
|
|
depthBoundsTestEnable = false;
|
|
|
|
stencilTestEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
colorBlend = {
|
2021-01-12 04:07:51 +00:00
|
|
|
logicOpEnable = false;
|
2021-01-10 06:52:27 +00:00
|
|
|
attachments = ({
|
2021-01-13 15:44:34 +00:00
|
|
|
blendEnable = true;
|
|
|
|
srcColorBlendFactor = src_alpha;
|
|
|
|
dstColorBlendFactor = one_minus_src_alpha;
|
2021-01-10 06:52:27 +00:00
|
|
|
colorBlendOp = add;
|
|
|
|
srcAlphaBlendFactor = src_alpha;
|
2021-01-13 15:44:34 +00:00
|
|
|
dstAlphaBlendFactor = one_minus_src_alpha;
|
2021-01-10 06:52:27 +00:00
|
|
|
alphaBlendOp = add;
|
|
|
|
colorWriteMask = r|g|b|a;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = twod;
|
|
|
|
//renderPass = renderpass;
|
2021-01-05 14:42:30 +00:00
|
|
|
};
|
2021-01-05 08:43:26 +00:00
|
|
|
};
|
2020-07-16 06:42:49 +00:00
|
|
|
renderpass = {
|
|
|
|
attachments = (
|
|
|
|
{
|
|
|
|
flags = 0;
|
|
|
|
format = $swapchain.format;
|
|
|
|
samples = $msaaSamples;
|
|
|
|
loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
|
|
|
|
storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
|
|
|
stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
|
|
|
stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
|
|
|
initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
|
|
|
finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
flags = 0;
|
2020-12-21 09:38:31 +00:00
|
|
|
format = VK_FORMAT_D32_SFLOAT;
|
2020-12-21 11:17:27 +00:00
|
|
|
samples = $msaaSamples;
|
2020-07-16 06:42:49 +00:00
|
|
|
loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
|
2020-12-21 09:38:31 +00:00
|
|
|
storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
2020-07-16 06:42:49 +00:00
|
|
|
stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
|
|
|
stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
|
|
|
initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
2020-12-21 09:38:31 +00:00
|
|
|
finalLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
2020-07-16 06:42:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
flags = 0;
|
2020-12-21 09:38:31 +00:00
|
|
|
format = $swapchain.format;
|
2020-07-16 06:42:49 +00:00
|
|
|
samples = VK_SAMPLE_COUNT_1_BIT;
|
|
|
|
loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
|
|
|
storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
|
|
|
stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
|
|
|
stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
|
|
|
initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
|
|
|
finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
subpasses = (
|
|
|
|
{
|
2020-12-21 09:38:31 +00:00
|
|
|
pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS;
|
2020-07-16 15:33:00 +00:00
|
|
|
colorAttachments = (
|
2020-07-16 06:42:49 +00:00
|
|
|
{
|
2020-07-16 15:33:00 +00:00
|
|
|
attachment = 0;
|
2020-07-16 06:42:49 +00:00
|
|
|
layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
resolveAttachments = (
|
|
|
|
{
|
2020-07-16 15:33:00 +00:00
|
|
|
attachment = 2;
|
2020-07-16 06:42:49 +00:00
|
|
|
layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
depthStencilAttachment = {
|
2020-07-16 15:33:00 +00:00
|
|
|
attachment = 1;
|
2020-12-21 09:38:31 +00:00
|
|
|
layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
2020-07-16 06:42:49 +00:00
|
|
|
};
|
|
|
|
preserveAttachments = ();
|
|
|
|
},
|
|
|
|
);
|
|
|
|
dependencies = (
|
|
|
|
{
|
|
|
|
srcSubpass = VK_SUBPASS_EXTERNAL;
|
|
|
|
dstSubpass = 0;
|
2021-01-16 11:27:48 +00:00
|
|
|
srcStageMask = VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT;
|
2020-07-16 06:42:49 +00:00
|
|
|
dstStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
|
2021-01-16 11:27:48 +00:00
|
|
|
srcAccessMask = VK_ACCESS_MEMORY_READ_BIT;
|
|
|
|
dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
|
|
|
|
dependencyFlags = VK_DEPENDENCY_BY_REGION_BIT;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
srcSubpass = 0;
|
|
|
|
dstSubpass = VK_SUBPASS_EXTERNAL;
|
|
|
|
srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
|
|
|
|
dstStageMask = VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT;
|
|
|
|
srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
|
|
|
|
dstAccessMask = VK_ACCESS_MEMORY_READ_BIT;
|
|
|
|
dependencyFlags = VK_DEPENDENCY_BY_REGION_BIT;
|
|
|
|
},
|
2020-07-16 06:42:49 +00:00
|
|
|
);
|
2021-01-05 08:43:26 +00:00
|
|
|
};
|
2020-07-16 06:42:49 +00:00
|
|
|
}
|