2020-07-16 06:42:49 +00:00
|
|
|
{
|
2021-12-06 05:21:10 +00:00
|
|
|
limits = {
|
|
|
|
//FIXME this really needs to be an external variable as the C code
|
|
|
|
//needs to agree on the size, so it might as well set maxSamplers
|
|
|
|
//directly (and any other such variable)
|
|
|
|
maxSamplers = "min (256u, $physDevLimits.maxPerStageDescriptorSamplers)";
|
2021-12-06 11:38:06 +00:00
|
|
|
maxImages = "min (256u, $physDevLimits.maxPerStageDescriptorSampledImages - 8u)";
|
2021-12-06 05:21:10 +00:00
|
|
|
};
|
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-02-04 08:03:49 +00:00
|
|
|
quakebsp_sampler = {
|
2021-01-20 17:13:40 +00:00
|
|
|
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-02-04 08:03:49 +00:00
|
|
|
alias_sampler = {
|
2021-01-26 11:58:24 +00:00
|
|
|
magFilter = linear;
|
|
|
|
minFilter = linear;
|
|
|
|
mipmapMode = linear;
|
|
|
|
addressModeU = clamp_to_edge;
|
|
|
|
addressModeV = clamp_to_edge;
|
|
|
|
addressModeW = clamp_to_edge;
|
|
|
|
mipLodBias = 0;
|
|
|
|
anisotropyEnable = false;
|
|
|
|
maxAnisotropy = 0;
|
|
|
|
compareEnable = false;
|
|
|
|
compareOp = always;
|
|
|
|
minLod = 0;
|
|
|
|
maxLod = 1000;
|
|
|
|
borderColor = float_transparent_black;
|
|
|
|
unnormalizedCoordinates = false;
|
|
|
|
};
|
2021-04-24 01:40:39 +00:00
|
|
|
shadow_sampler = {
|
|
|
|
magFilter = linear;
|
|
|
|
minFilter = linear;
|
|
|
|
mipmapMode = linear;
|
|
|
|
addressModeU = clamp_to_edge;
|
|
|
|
addressModeV = clamp_to_edge;
|
|
|
|
addressModeW = clamp_to_edge;
|
|
|
|
mipLodBias = 0;
|
|
|
|
anisotropyEnable = false;
|
|
|
|
maxAnisotropy = 0;
|
|
|
|
compareEnable = true;
|
|
|
|
compareOp = greater_or_equal;
|
|
|
|
minLod = 0;
|
|
|
|
maxLod = 1000;
|
|
|
|
borderColor = float_transparent_black;
|
|
|
|
unnormalizedCoordinates = false;
|
|
|
|
};
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
descriptorPools = {
|
2021-12-08 06:28:21 +00:00
|
|
|
matrix_pool = {
|
2021-01-10 06:52:27 +00:00
|
|
|
flags = 0;
|
2021-02-05 01:22:32 +00:00
|
|
|
maxSets = $frames.size;
|
2021-01-10 06:52:27 +00:00
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = uniform_buffer;
|
2021-02-05 01:22:32 +00:00
|
|
|
descriptorCount = $frames.size;
|
2021-01-10 06:52:27 +00:00
|
|
|
},
|
2021-12-08 06:28:21 +00:00
|
|
|
);
|
|
|
|
};
|
|
|
|
twod_pool = {
|
|
|
|
flags = 0;
|
|
|
|
maxSets = $frames.size;
|
|
|
|
bindings = (
|
2021-01-10 06:52:27 +00:00
|
|
|
{
|
|
|
|
type = combined_image_sampler;
|
2021-02-05 01:22:32 +00:00
|
|
|
descriptorCount = $frames.size;
|
2021-01-10 06:52:27 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:39:48 +00:00
|
|
|
texture_pool = {
|
2021-12-08 12:11:36 +00:00
|
|
|
flags = 0;
|
|
|
|
maxSets = 1;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = sampled_image;
|
|
|
|
descriptorCount = $properties.limits.maxImages;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:39:48 +00:00
|
|
|
//FIXME probably should just share a larger pool
|
|
|
|
alias_pool = $properties.descriptorPools.texture_pool;
|
|
|
|
quakebsp_pool = $properties.descriptorPools.texture_pool;
|
2021-02-24 10:58:31 +00:00
|
|
|
lighting_attach_pool = {
|
|
|
|
flags = 0;
|
|
|
|
maxSets = $frames.size;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = input_attachment;
|
2021-03-22 10:08:16 +00:00
|
|
|
descriptorCount = "5z * $frames.size";
|
2021-02-24 10:58:31 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
lighting_lights_pool = {
|
|
|
|
flags = 0;
|
|
|
|
maxSets = $frames.size;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = uniform_buffer;
|
|
|
|
descriptorCount = $frames.size;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-04-24 01:40:39 +00:00
|
|
|
lighting_shadow_pool = {
|
|
|
|
flags = 0;
|
|
|
|
maxSets = $frames.size;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = combined_image_sampler;
|
2021-12-06 05:21:10 +00:00
|
|
|
descriptorCount = "$frames.size * size_t($properties.limits.maxSamplers)";
|
2021-04-24 01:40:39 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-02-24 10:58:31 +00:00
|
|
|
compose_attach_pool = {
|
|
|
|
flags = 0;
|
|
|
|
maxSets = $frames.size;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = input_attachment;
|
|
|
|
descriptorCount = "2z * $frames.size";
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-01-05 05:15:35 +00:00
|
|
|
};
|
2021-01-04 08:36:11 +00:00
|
|
|
setLayouts = {
|
2021-12-08 06:28:21 +00:00
|
|
|
matrix_set = {
|
2021-01-10 06:52:27 +00:00
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = uniform_buffer;
|
|
|
|
descriptorCount = 1;
|
2021-12-08 07:44:22 +00:00
|
|
|
stageFlags = vertex|geometry;
|
2021-01-10 06:52:27 +00:00
|
|
|
},
|
2021-12-08 06:28:21 +00:00
|
|
|
);
|
|
|
|
};
|
|
|
|
twod_set = {
|
|
|
|
bindings = (
|
2021-01-10 06:52:27 +00:00
|
|
|
{
|
2021-12-08 06:28:21 +00:00
|
|
|
binding = 0;
|
2021-01-10 06:52:27 +00:00
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:39:48 +00:00
|
|
|
texture_set = {
|
2021-01-26 11:58:24 +00:00
|
|
|
bindings = (
|
2021-01-25 15:55:45 +00:00
|
|
|
{
|
2021-01-26 11:58:24 +00:00
|
|
|
binding = 0;
|
2021-12-08 07:44:22 +00:00
|
|
|
descriptorType = sampler;
|
2021-01-25 15:55:45 +00:00
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
2021-01-26 11:58:24 +00:00
|
|
|
binding = 1;
|
2021-12-08 07:44:22 +00:00
|
|
|
descriptorType = sampled_image;
|
|
|
|
descriptorCount = $properties.limits.maxImages;
|
2021-01-25 15:55:45 +00:00
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:39:48 +00:00
|
|
|
quakebsp_set = $properties.setLayouts.texture_set;
|
|
|
|
alias_set = $properties.setLayouts.texture_set;
|
2021-02-24 10:58:31 +00:00
|
|
|
lighting_attach = {
|
2021-01-04 08:36:11 +00:00
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
2021-02-24 10:58:31 +00:00
|
|
|
descriptorType = input_attachment;
|
2021-01-04 08:36:11 +00:00
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
2021-02-24 10:58:31 +00:00
|
|
|
descriptorType = input_attachment;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 2;
|
|
|
|
descriptorType = input_attachment;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
2021-02-25 04:46:33 +00:00
|
|
|
{
|
|
|
|
binding = 3;
|
|
|
|
descriptorType = input_attachment;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
2021-03-22 10:08:16 +00:00
|
|
|
{
|
|
|
|
binding = 4;
|
|
|
|
descriptorType = input_attachment;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
2021-02-24 10:58:31 +00:00
|
|
|
);
|
|
|
|
};
|
|
|
|
lighting_lights = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
2021-01-04 08:36:11 +00:00
|
|
|
descriptorType = uniform_buffer;
|
|
|
|
descriptorCount = 1;
|
2021-02-24 10:58:31 +00:00
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-04-24 01:40:39 +00:00
|
|
|
lighting_shadow = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = combined_image_sampler;
|
2021-12-06 05:21:10 +00:00
|
|
|
descriptorCount = $properties.limits.maxSamplers;
|
2021-04-24 01:40:39 +00:00
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-02-24 10:58:31 +00:00
|
|
|
compose_attach = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = input_attachment;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
|
|
|
descriptorType = input_attachment;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
2021-01-04 08:36:11 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
pipelineLayouts = {
|
2021-02-04 08:03:49 +00:00
|
|
|
twod_layout = {
|
2021-12-08 06:28:21 +00:00
|
|
|
setLayouts = (matrix_set, twod_set);
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
quakebsp_layout = {
|
2021-12-08 07:44:22 +00:00
|
|
|
setLayouts = (matrix_set, quakebsp_set);
|
2021-01-19 16:25:54 +00:00
|
|
|
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-02-04 08:03:49 +00:00
|
|
|
alias_layout = {
|
2021-12-08 07:44:22 +00:00
|
|
|
setLayouts = (matrix_set, alias_set);
|
2021-01-25 15:55:45 +00:00
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = vertex;
|
|
|
|
offset = 0;
|
|
|
|
size = "16 * 4 + 4";
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
2021-02-02 10:53:36 +00:00
|
|
|
offset = 68;
|
2021-12-06 11:38:06 +00:00
|
|
|
size = "3 * 4 + 2 * 4 * 4 + 4";
|
2021-01-25 15:55:45 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:44:16 +00:00
|
|
|
sprite_layout = {
|
|
|
|
setLayouts = (matrix_set, spritevrt_set, texture_set);
|
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = vertex;
|
|
|
|
offset = 0;
|
|
|
|
size = "16 * 4";
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stageFlags = vertex|fragment;
|
|
|
|
offset = 64;
|
|
|
|
size = "4";
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
|
|
|
offset = 68;
|
|
|
|
size = "2 * 4 + 2 * 4 + 4 * 4";
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-02-24 10:58:31 +00:00
|
|
|
lighting_layout = {
|
2021-04-24 01:40:39 +00:00
|
|
|
setLayouts = (lighting_attach, lighting_lights, lighting_shadow);
|
2021-02-24 10:58:31 +00:00
|
|
|
};
|
|
|
|
compose_layout = {
|
|
|
|
setLayouts = (compose_attach);
|
2021-01-04 08:36:11 +00:00
|
|
|
};
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
|
|
|
|
depthStencil = {
|
|
|
|
test_and_write = {
|
|
|
|
depthTestEnable = true;
|
|
|
|
depthWriteEnable = true;
|
|
|
|
depthCompareOp = less_or_equal;
|
|
|
|
depthBoundsTestEnable = false;
|
|
|
|
stencilTestEnable = false;
|
|
|
|
};
|
|
|
|
test_only = {
|
|
|
|
depthTestEnable = true;
|
|
|
|
depthWriteEnable = false;
|
|
|
|
depthCompareOp = less_or_equal;
|
|
|
|
depthBoundsTestEnable = false;
|
|
|
|
stencilTestEnable = false;
|
|
|
|
};
|
|
|
|
disable = {
|
|
|
|
depthTestEnable = false;
|
|
|
|
depthWriteEnable = false;
|
|
|
|
depthCompareOp = less_or_equal;
|
|
|
|
depthBoundsTestEnable = false;
|
|
|
|
stencilTestEnable = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
inputAssembly = {
|
|
|
|
alias = {
|
|
|
|
topology = triangle_list;
|
|
|
|
primitiveRestartEnable = false;
|
|
|
|
};
|
|
|
|
brush = {
|
|
|
|
topology = triangle_fan;
|
|
|
|
primitiveRestartEnable = true;
|
|
|
|
};
|
|
|
|
twod = {
|
|
|
|
topology = triangle_strip;
|
|
|
|
primitiveRestartEnable = true;
|
|
|
|
};
|
2021-12-14 05:44:16 +00:00
|
|
|
sprite = {
|
|
|
|
topology = triangle_strip;
|
|
|
|
primitiveRestartEnable = true;
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vertexInput = {
|
|
|
|
alias = {
|
|
|
|
bindings = (
|
|
|
|
{ binding = 0; stride = "2 * 4 * 4"; inputRate = vertex; },
|
|
|
|
{ binding = 1; stride = "2 * 4 * 4"; inputRate = vertex; },
|
|
|
|
{ binding = 2; stride = "2 * 4"; inputRate = vertex; },
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{ location = 0; binding = 0; format = r32g32b32a32_sfloat; offset = 0; },
|
|
|
|
{ location = 1; binding = 0; format = r32g32b32a32_sfloat; offset = 16; },
|
|
|
|
{ location = 2; binding = 1; format = r32g32b32a32_sfloat; offset = 0; },
|
|
|
|
{ location = 3; binding = 1; format = r32g32b32a32_sfloat; offset = 16; },
|
|
|
|
{ location = 4; binding = 2; format = r32g32_sfloat; offset = 0; },
|
|
|
|
);
|
|
|
|
};
|
|
|
|
brush = {
|
|
|
|
bindings = (
|
|
|
|
{ binding = 0; stride = "2 * 4 * 4"; inputRate = vertex; },
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{ location = 0; binding = 0; format = r32g32b32a32_sfloat; offset = 0; },
|
|
|
|
{ location = 1; binding = 0; format = r32g32b32a32_sfloat; offset = 16; },
|
|
|
|
);
|
|
|
|
};
|
|
|
|
twod = {
|
|
|
|
bindings = (
|
|
|
|
{ binding = 0; stride = "2 * 4 * 4"; inputRate = vertex; },
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{ location = 0; binding = 0; format = r32g32_sfloat; offset = 0; },
|
|
|
|
{ location = 1; binding = 0; format = r32g32_sfloat; offset = 8; },
|
|
|
|
{ location = 2; binding = 0; format = r32g32b32a32_sfloat; offset = 16; },
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rasterization = {
|
|
|
|
cw_cull_back = {
|
|
|
|
depthClampEnable = false;
|
|
|
|
rasterizerDiscardEnable = false;
|
|
|
|
polygonMode = fill;
|
|
|
|
cullMode = back;
|
|
|
|
frontFace = clockwise;
|
|
|
|
depthBiasEnable = false;
|
|
|
|
lineWidth = 1;
|
|
|
|
};
|
|
|
|
counter_cw_cull_back = {
|
|
|
|
depthClampEnable = false;
|
|
|
|
rasterizerDiscardEnable = false;
|
|
|
|
polygonMode = fill;
|
|
|
|
cullMode = back;
|
|
|
|
frontFace = counter_clockwise;
|
|
|
|
depthBiasEnable = false;
|
|
|
|
lineWidth = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
multisample = {
|
|
|
|
rasterizationSamples = $msaaSamples;
|
|
|
|
sampleShadingEnable = false;
|
|
|
|
minSampleShading = 0.5f;
|
|
|
|
alphaToCoverageEnable = false;
|
|
|
|
alphaToOneEnable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
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; };
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
attachmentBlendOp = {
|
|
|
|
disabled = {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
alpha_blend = {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fsquad = {
|
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
{ binding = 0; stride = "4 * 4"; inputRate = vertex; },
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{ location = 0; binding = 0; format = r32g32b32a32_sfloat; offset = 0; },
|
|
|
|
);
|
|
|
|
};
|
|
|
|
inputAssembly = {
|
|
|
|
topology = triangle_strip;
|
|
|
|
primitiveRestartEnable = false;
|
|
|
|
};
|
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
|
|
|
attachments = ($properties.attachmentBlendOp.disabled);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-10 06:52:27 +00:00
|
|
|
pipelines = {
|
2021-04-24 01:40:39 +00:00
|
|
|
alias_shadow = {
|
|
|
|
subpass = 0;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/alias_shadow.vert;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
"$properties.vertexInput.alias.bindings[0]",
|
|
|
|
"$properties.vertexInput.alias.bindings[1]",
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
"$properties.vertexInput.alias.attributes[0]",
|
|
|
|
"$properties.vertexInput.alias.attributes[1]",
|
|
|
|
"$properties.vertexInput.alias.attributes[2]",
|
|
|
|
"$properties.vertexInput.alias.attributes[3]",
|
|
|
|
);
|
|
|
|
};
|
|
|
|
inputAssembly = $properties.inputAssembly.alias;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_and_write;
|
|
|
|
colorBlend = $properties.pipelines.alias_gbuf.colorBlend;
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = alias_layout;
|
|
|
|
};
|
|
|
|
bsp_shadow = {
|
|
|
|
subpass = 0;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/bsp_shadow.vert;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
"$properties.vertexInput.brush.bindings[0]",
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
"$properties.vertexInput.brush.attributes[0]",
|
|
|
|
);
|
|
|
|
};
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_and_write;
|
|
|
|
colorBlend = $properties.pipelines.bsp_gbuf.colorBlend;
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = quakebsp_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-04-24 01:40:39 +00:00
|
|
|
};
|
2021-02-14 02:35:06 +00:00
|
|
|
alias_depth = {
|
2021-02-17 04:50:36 +00:00
|
|
|
subpass = 0;
|
2021-02-14 02:35:06 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
2021-02-17 04:35:19 +00:00
|
|
|
module = $builtin/alias_depth.vert;
|
2021-02-14 02:35:06 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = {
|
2021-03-23 01:01:13 +00:00
|
|
|
// depth pass doesn't use UVs
|
2021-02-14 02:35:06 +00:00
|
|
|
bindings = (
|
2021-03-23 01:01:13 +00:00
|
|
|
"$properties.vertexInput.alias.bindings[0]",
|
|
|
|
"$properties.vertexInput.alias.bindings[1]",
|
2021-02-14 02:35:06 +00:00
|
|
|
);
|
|
|
|
attributes = (
|
2021-03-23 01:01:13 +00:00
|
|
|
"$properties.vertexInput.alias.attributes[0]",
|
|
|
|
"$properties.vertexInput.alias.attributes[1]",
|
|
|
|
"$properties.vertexInput.alias.attributes[2]",
|
|
|
|
"$properties.vertexInput.alias.attributes[3]",
|
2021-02-14 02:35:06 +00:00
|
|
|
);
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
inputAssembly = $properties.inputAssembly.alias;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_and_write;
|
|
|
|
colorBlend = $properties.pipelines.alias_gbuf.colorBlend;
|
2021-02-14 02:35:06 +00:00
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = alias_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-02-14 02:35:06 +00:00
|
|
|
};
|
|
|
|
alias_gbuf = {
|
2021-03-23 02:26:24 +00:00
|
|
|
subpass = 2;
|
2021-01-25 15:55:45 +00:00
|
|
|
stages = (
|
2021-02-04 08:03:49 +00:00
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/alias.vert;
|
|
|
|
},
|
2021-01-25 15:55:45 +00:00
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
2021-02-17 04:35:19 +00:00
|
|
|
module = $builtin/alias_gbuf.frag;
|
2021-01-25 15:55:45 +00:00
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
2021-12-06 11:38:06 +00:00
|
|
|
// MaxTextures
|
2021-01-25 15:55:45 +00:00
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
);
|
2021-12-06 11:38:06 +00:00
|
|
|
data = "array(uint($properties.limits.maxImages))";
|
2021-01-25 15:55:45 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.vertexInput.alias;
|
|
|
|
inputAssembly = $properties.inputAssembly.alias;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
2021-01-25 15:55:45 +00:00
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
2021-02-17 04:50:36 +00:00
|
|
|
attachments = (
|
2021-03-23 01:01:13 +00:00
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
2021-02-17 04:50:36 +00:00
|
|
|
);
|
2021-01-25 15:55:45 +00:00
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor, blend_constants );
|
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = alias_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-01-25 15:55:45 +00:00
|
|
|
};
|
2021-02-14 02:35:06 +00:00
|
|
|
bsp_depth = {
|
2021-02-19 02:14:54 +00:00
|
|
|
subpass = 0;
|
2021-02-14 02:35:06 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
2021-02-17 04:35:19 +00:00
|
|
|
module = $builtin/bsp_depth.vert;
|
2021-02-14 02:35:06 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = {
|
|
|
|
bindings = (
|
2021-03-23 01:01:13 +00:00
|
|
|
"$properties.vertexInput.brush.bindings[0]",
|
2021-02-14 02:35:06 +00:00
|
|
|
);
|
|
|
|
attributes = (
|
2021-03-23 01:01:13 +00:00
|
|
|
"$properties.vertexInput.brush.attributes[0]",
|
2021-02-14 02:35:06 +00:00
|
|
|
);
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_and_write;
|
|
|
|
colorBlend = $properties.pipelines.bsp_gbuf.colorBlend;
|
2021-02-14 02:35:06 +00:00
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = quakebsp_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-02-14 02:35:06 +00:00
|
|
|
};
|
|
|
|
bsp_gbuf = {
|
2021-03-23 02:26:24 +00:00
|
|
|
subpass = 2;
|
2021-01-19 16:25:54 +00:00
|
|
|
stages = (
|
2021-02-04 08:03:49 +00:00
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
2021-02-17 04:35:19 +00:00
|
|
|
module = $builtin/bsp_gbuf.vert;
|
2021-02-04 08:03:49 +00:00
|
|
|
},
|
2021-02-19 02:14:54 +00:00
|
|
|
{
|
|
|
|
stage = geometry;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/bsp_gbuf.geom;
|
|
|
|
},
|
2021-02-04 08:03:49 +00:00
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
2021-02-17 04:35:19 +00:00
|
|
|
module = $builtin/bsp_gbuf.frag;
|
2021-02-25 06:51:54 +00:00
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
2021-12-06 11:38:06 +00:00
|
|
|
// MaxTextures
|
2021-02-25 06:51:54 +00:00
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
);
|
2021-12-06 11:38:06 +00:00
|
|
|
data = "array(uint($properties.limits.maxImages))";
|
2021-02-25 06:51:54 +00:00
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
},
|
2021-01-19 16:25:54 +00:00
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
2021-01-23 11:42:53 +00:00
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
2021-02-19 02:14:54 +00:00
|
|
|
attachments = (
|
2021-03-23 01:01:13 +00:00
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
2021-02-19 02:14:54 +00:00
|
|
|
);
|
2021-01-23 11:42:53 +00:00
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor, blend_constants );
|
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = quakebsp_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-01-23 11:42:53 +00:00
|
|
|
};
|
2021-03-25 06:54:34 +00:00
|
|
|
bsp_skybox = {
|
|
|
|
subpass = 1;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/quakebsp.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/bsp_sky.frag;
|
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
2021-12-06 11:38:06 +00:00
|
|
|
// MaxTextures
|
|
|
|
{ size = 4; offset = 8; constantID = 0; },
|
|
|
|
// doSkyBox
|
|
|
|
{ size = 4; offset = 4; constantID = 1; },
|
|
|
|
// doSkySheet
|
|
|
|
{ size = 4; offset = 0; constantID = 2; },
|
2021-03-25 06:54:34 +00:00
|
|
|
);
|
2021-12-06 11:38:06 +00:00
|
|
|
data = "array(0, 1, uint($properties.limits.maxImages))";
|
2021-03-25 06:54:34 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
|
|
|
attachments = ($properties.attachmentBlendOp.disabled);
|
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = quakebsp_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-03-25 06:54:34 +00:00
|
|
|
};
|
2021-02-19 02:14:54 +00:00
|
|
|
bsp_skysheet = {
|
2021-03-23 02:26:24 +00:00
|
|
|
subpass = 1;
|
2021-01-23 11:42:53 +00:00
|
|
|
stages = (
|
2021-02-04 08:03:49 +00:00
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
2021-03-22 23:25:56 +00:00
|
|
|
module = $builtin/quakebsp.vert;
|
2021-02-19 02:14:54 +00:00
|
|
|
},
|
2021-01-23 11:42:53 +00:00
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
2021-02-23 06:43:02 +00:00
|
|
|
module = $builtin/bsp_sky.frag;
|
2021-01-23 11:42:53 +00:00
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
2021-12-06 11:38:06 +00:00
|
|
|
// MaxTextures
|
|
|
|
{ size = 4; offset = 8; constantID = 0; },
|
|
|
|
// doSkyBox
|
|
|
|
{ size = 4; offset = 0; constantID = 1; },
|
|
|
|
// doSkySheet
|
|
|
|
{ size = 4; offset = 4; constantID = 2; },
|
2021-03-23 03:24:24 +00:00
|
|
|
);
|
2021-12-06 11:38:06 +00:00
|
|
|
data = "array(0, 1, uint($properties.limits.maxImages))";
|
2021-03-23 03:24:24 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
|
|
|
attachments = ($properties.attachmentBlendOp.disabled);
|
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = quakebsp_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-03-23 03:24:24 +00:00
|
|
|
};
|
|
|
|
bsp_turb = {
|
|
|
|
subpass = 1;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/quakebsp.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/bsp_turb.frag;
|
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
2021-12-06 11:38:06 +00:00
|
|
|
// MaxTextures
|
2021-01-23 11:42:53 +00:00
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
);
|
2021-12-06 11:38:06 +00:00
|
|
|
data = "array(uint($properties.limits.maxImages))";
|
2021-01-23 11:42:53 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
2021-02-23 06:43:02 +00:00
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
2021-03-23 01:01:13 +00:00
|
|
|
attachments = ($properties.attachmentBlendOp.disabled);
|
2021-02-23 06:43:02 +00:00
|
|
|
};
|
2021-01-19 16:25:54 +00:00
|
|
|
dynamic = {
|
2021-02-14 02:35:06 +00:00
|
|
|
dynamicState = ( viewport, scissor );
|
2021-01-19 16:25:54 +00:00
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = quakebsp_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-01-19 16:25:54 +00:00
|
|
|
};
|
2021-12-14 05:44:16 +00:00
|
|
|
sprite_gbuf = {
|
|
|
|
subpass = 2;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_gbuf.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_gbuf.frag;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
inputAssembly = $properties.inputAssembly.sprite;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
|
|
|
colorBlend = $properties.pipelines.alias_gbuf.colorBlend;
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor, blend_constants );
|
|
|
|
};
|
|
|
|
layout = sprite_layout;
|
|
|
|
renderPass = renderpass;
|
|
|
|
};
|
|
|
|
sprite_depth = {
|
|
|
|
subpass = 0;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_depth.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_depth.frag;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
inputAssembly = $properties.inputAssembly.alias;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.test_and_write;
|
|
|
|
colorBlend = $properties.pipelines.alias_gbuf.colorBlend;
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = alias_layout;
|
|
|
|
renderPass = renderpass;
|
|
|
|
};
|
2021-01-10 06:52:27 +00:00
|
|
|
twod = {
|
2021-03-23 02:26:24 +00:00
|
|
|
subpass = 1;
|
2021-01-10 06:52:27 +00:00
|
|
|
stages = (
|
2021-02-04 08:03:49 +00:00
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/twod.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/twod.frag;
|
|
|
|
},
|
2021-01-05 14:42:30 +00:00
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.vertexInput.twod;
|
|
|
|
inputAssembly = $properties.inputAssembly.twod;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.counter_cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
2021-03-23 02:26:24 +00:00
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
2021-01-10 06:52:27 +00:00
|
|
|
colorBlend = {
|
2021-01-12 04:07:51 +00:00
|
|
|
logicOpEnable = false;
|
2021-03-23 01:01:13 +00:00
|
|
|
attachments = ($properties.attachmentBlendOp.alpha_blend);
|
2021-01-10 06:52:27 +00:00
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = twod_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-01-05 14:42:30 +00:00
|
|
|
};
|
2021-02-24 10:58:31 +00:00
|
|
|
lighting = {
|
2021-03-23 02:26:24 +00:00
|
|
|
subpass = 3;
|
2021-02-24 10:58:31 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/passthrough.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/lighting.frag;
|
2021-12-06 05:21:10 +00:00
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
);
|
2021-12-06 11:38:06 +00:00
|
|
|
data = "array(uint($properties.limits.maxSamplers))";
|
2021-12-06 05:21:10 +00:00
|
|
|
};
|
2021-02-24 10:58:31 +00:00
|
|
|
},
|
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.fsquad.vertexInput;
|
|
|
|
inputAssembly = $properties.fsquad.inputAssembly;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.counter_cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.disable;
|
|
|
|
colorBlend = $properties.fsquad.colorBlend;
|
2021-02-24 10:58:31 +00:00
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = lighting_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-02-24 10:58:31 +00:00
|
|
|
};
|
|
|
|
compose = {
|
|
|
|
subpass = 4;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/passthrough.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/compose.frag;
|
|
|
|
},
|
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.fsquad.vertexInput;
|
|
|
|
inputAssembly = $properties.fsquad.inputAssembly;
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.counter_cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.disable;
|
|
|
|
colorBlend = $properties.fsquad.colorBlend;
|
2021-02-24 10:58:31 +00:00
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
layout = compose_layout;
|
2021-12-02 12:58:29 +00:00
|
|
|
renderPass = renderpass;
|
2021-02-24 10:58:31 +00:00
|
|
|
};
|
2021-01-05 08:43:26 +00:00
|
|
|
};
|
2020-07-16 06:42:49 +00:00
|
|
|
}
|