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-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-12-14 16:22:05 +00:00
|
|
|
sprite_sampler = $properties.samplers.alias_sampler;
|
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
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2022-05-24 15:17:57 +00:00
|
|
|
entity_pool = {
|
|
|
|
flags = free_descriptor_set;
|
|
|
|
maxSets = 512;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = storage_buffer;
|
|
|
|
descriptorCount = $properties.descriptorPools.entity_pool.maxSets;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2022-05-07 01:08:46 +00:00
|
|
|
bone_pool = {
|
|
|
|
flags = free_descriptor_set;
|
|
|
|
maxSets = 512;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = storage_buffer;
|
|
|
|
descriptorCount = $properties.descriptorPools.bone_pool.maxSets;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:39:48 +00:00
|
|
|
texture_pool = {
|
2021-12-17 03:20:32 +00:00
|
|
|
flags = free_descriptor_set;
|
2022-05-21 08:45:22 +00:00
|
|
|
maxSets = 1024;
|
2021-12-08 12:11:36 +00:00
|
|
|
bindings = (
|
|
|
|
{
|
2021-12-17 03:20:32 +00:00
|
|
|
type = combined_image_sampler;
|
|
|
|
descriptorCount = $properties.descriptorPools.texture_pool.maxSets;
|
2021-12-08 12:11:36 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-16 14:17:01 +00:00
|
|
|
particle_pool = {
|
|
|
|
flags = 0;
|
|
|
|
maxSets = $frames.size;
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = storage_buffer;
|
|
|
|
descriptorCount = 3;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 16:22:05 +00:00
|
|
|
sprite_pool = {
|
|
|
|
flags = free_descriptor_set;
|
|
|
|
maxSets = 64; //FIXME cvar?
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
type = uniform_buffer;
|
|
|
|
descriptorCount = $properties.descriptorPools.sprite_pool.maxSets;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = combined_image_sampler;
|
|
|
|
descriptorCount = $properties.descriptorPools.sprite_pool.maxSets;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
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;
|
2022-05-10 01:47:51 +00:00
|
|
|
descriptorCount = 768;//"$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-17 03:20:32 +00:00
|
|
|
descriptorType = combined_image_sampler;
|
2021-01-25 15:55:45 +00:00
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2022-05-24 15:17:57 +00:00
|
|
|
entity_set = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = storage_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = vertex;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2022-05-07 01:08:46 +00:00
|
|
|
bone_set = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = storage_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = vertex;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 16:22:05 +00:00
|
|
|
sprite_set = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = uniform_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = vertex;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
|
|
|
descriptorType = combined_image_sampler;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = fragment;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
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;
|
2022-05-10 01:47:51 +00:00
|
|
|
descriptorCount = 768;//$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
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-16 14:17:01 +00:00
|
|
|
particle_set = {
|
|
|
|
bindings = (
|
|
|
|
{
|
|
|
|
binding = 0;
|
|
|
|
descriptorType = storage_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = compute;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 1;
|
|
|
|
descriptorType = storage_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = compute;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
binding = 2;
|
|
|
|
descriptorType = storage_buffer;
|
|
|
|
descriptorCount = 1;
|
|
|
|
stageFlags = compute;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
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 = {
|
2022-05-24 15:17:57 +00:00
|
|
|
setLayouts = (matrix_set, entity_set, texture_set, texture_set);
|
2021-01-19 16:25:54 +00:00
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
2022-05-24 15:17:57 +00:00
|
|
|
offset = 0;
|
2022-05-26 23:12:21 +00:00
|
|
|
size = "4 * 4 + 4 + 4 + 4";
|
2021-01-19 16:25:54 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
alias_layout = {
|
2022-05-04 05:18:05 +00:00
|
|
|
setLayouts = (matrix_set, texture_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
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2022-05-07 01:08:46 +00:00
|
|
|
iqm_layout = {
|
|
|
|
setLayouts = (matrix_set, texture_set, bone_set);
|
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = vertex;
|
|
|
|
offset = 0;
|
|
|
|
size = "16 * 4 + 4";
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
|
|
|
offset = 68;
|
|
|
|
size = "3 * 4 + 2 * 4 * 4 + 4";
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
2021-12-14 05:44:16 +00:00
|
|
|
sprite_layout = {
|
2021-12-14 16:22:05 +00:00
|
|
|
setLayouts = (matrix_set, sprite_set);
|
2021-12-14 05:44:16 +00:00
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = vertex;
|
|
|
|
offset = 0;
|
2021-12-14 16:22:05 +00:00
|
|
|
size = "16 * 4 + 4";
|
2021-12-14 05:44:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
stageFlags = fragment;
|
2021-12-14 16:22:05 +00:00
|
|
|
offset = 64;
|
2021-12-14 05:44:16 +00:00
|
|
|
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-12-16 14:17:01 +00:00
|
|
|
partphysics_layout = {
|
|
|
|
setLayouts = (particle_set);
|
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = compute;
|
|
|
|
offset = 0;
|
|
|
|
size = "16 * 4 + 4";
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
|
|
|
partupdate_layout = {
|
|
|
|
setLayouts = (particle_set, particle_set, particle_set);
|
|
|
|
};
|
|
|
|
partdraw_layout = {
|
|
|
|
setLayouts = (matrix_set);
|
|
|
|
pushConstantRanges = (
|
|
|
|
{
|
|
|
|
stageFlags = vertex;
|
|
|
|
offset = 0;
|
|
|
|
size = "16 * 4";
|
|
|
|
},
|
|
|
|
);
|
|
|
|
};
|
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;
|
|
|
|
};
|
2022-05-07 01:08:46 +00:00
|
|
|
iqm = {
|
|
|
|
topology = triangle_list;
|
|
|
|
primitiveRestartEnable = false;
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
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 = {
|
2021-12-14 16:22:05 +00:00
|
|
|
index_only = {
|
|
|
|
bindings = ();
|
|
|
|
attributes = ();
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
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; },
|
2022-05-24 15:17:57 +00:00
|
|
|
{ binding = 1; stride = "4"; inputRate = instance; },
|
2021-03-23 01:01:13 +00:00
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{ location = 0; binding = 0; format = r32g32b32a32_sfloat; offset = 0; },
|
|
|
|
{ location = 1; binding = 0; format = r32g32b32a32_sfloat; offset = 16; },
|
2022-05-24 15:17:57 +00:00
|
|
|
{ location = 2; binding = 1; format = r32_uint; offset = 0; },
|
2021-03-23 01:01:13 +00:00
|
|
|
);
|
|
|
|
};
|
2022-05-07 01:08:46 +00:00
|
|
|
iqm = {
|
|
|
|
bindings = (
|
|
|
|
{ binding = 0; stride = 20; inputRate = vertex; },
|
|
|
|
{ binding = 1; stride = 40; inputRate = vertex; },
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
{ location = 0; binding = 0; format = r32g32b32_sfloat; offset = 0; }, // position
|
|
|
|
{ location = 1; binding = 0; format = r8g8b8a8_uint; offset = 12; }, // bonindices
|
|
|
|
{ location = 2; binding = 0; format = r8g8b8a8_unorm; offset = 16; }, // boneweights
|
|
|
|
|
|
|
|
{ location = 3; binding = 1; format = r32g32_sfloat; offset = 0; }, // texcoord
|
|
|
|
{ location = 4; binding = 1; format = r32g32b32_sfloat; offset = 8; }, // normal
|
|
|
|
{ location = 5; binding = 1; format = r32g32b32a32_sfloat; offset = 20; }, // tangent
|
|
|
|
{ location = 6; binding = 1; format = r8g8b8a8_unorm; offset = 36; }, // color
|
|
|
|
|
|
|
|
);
|
|
|
|
};
|
2021-12-16 14:17:01 +00:00
|
|
|
particle = {
|
|
|
|
bindings = (
|
|
|
|
{ binding = 0; stride = "4 * 4 * 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 = 0; format = r32g32b32a32_sfloat; offset = 16; },
|
|
|
|
{ location = 3; binding = 0; format = r32g32b32a32_sfloat; offset = 16; },
|
|
|
|
);
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-04-01 10:50:41 +00:00
|
|
|
fstriangle = {
|
2022-05-06 10:38:14 +00:00
|
|
|
vertexStage = {
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/fstriangle.vert;
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = {
|
2022-04-01 10:50:41 +00:00
|
|
|
bindings = ();
|
|
|
|
attributes = ();
|
2021-03-23 01:01:13 +00:00
|
|
|
};
|
|
|
|
inputAssembly = {
|
2022-04-01 10:50:41 +00:00
|
|
|
topology = triangle_list;
|
2021-03-23 01:01:13 +00:00
|
|
|
primitiveRestartEnable = false;
|
|
|
|
};
|
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
|
|
|
attachments = ($properties.attachmentBlendOp.disabled);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-10 06:52:27 +00:00
|
|
|
pipelines = {
|
2022-05-06 10:38:14 +00:00
|
|
|
base = {
|
|
|
|
viewport = $properties.viewport;
|
|
|
|
rasterization = $properties.rasterization.counter_cw_cull_back;
|
|
|
|
multisample = $properties.multisample;
|
|
|
|
depthStencil = $properties.depthStencil.disable;
|
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
|
|
|
attachments = (
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
$properties.attachmentBlendOp.disabled,
|
|
|
|
);
|
|
|
|
};
|
|
|
|
dynamic = {
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
renderPass = renderpass;
|
|
|
|
};
|
|
|
|
depth_base = {
|
|
|
|
@inherit = $properties.pipelines.base;
|
2021-04-24 01:40:39 +00:00
|
|
|
subpass = 0;
|
2022-05-06 10:38:14 +00:00
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
depthStencil = $properties.depthStencil.test_and_write;
|
|
|
|
};
|
|
|
|
trans_base = {
|
|
|
|
@inherit = $properties.pipelines.base;
|
|
|
|
subpass = 1;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
|
|
|
colorBlend = {
|
|
|
|
logicOpEnable = false;
|
|
|
|
attachments = ($properties.attachmentBlendOp.disabled);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gbuf_base = {
|
|
|
|
@inherit = $properties.pipelines.base;
|
|
|
|
subpass = 2;
|
|
|
|
rasterization = $properties.rasterization.cw_cull_back;
|
|
|
|
depthStencil = $properties.depthStencil.test_only;
|
|
|
|
dynamic = {//FIXME why?
|
|
|
|
dynamicState = ( viewport, scissor );
|
|
|
|
};
|
|
|
|
};
|
|
|
|
comp_base = {
|
|
|
|
@inherit = $properties.pipelines.base;
|
|
|
|
vertexInput = $properties.fstriangle.vertexInput;
|
|
|
|
inputAssembly = $properties.fstriangle.inputAssembly;
|
|
|
|
colorBlend = $properties.fstriangle.colorBlend;
|
|
|
|
};
|
|
|
|
shadow_base = {
|
|
|
|
@inherit = $properties.pipelines.depth_base;
|
|
|
|
};
|
|
|
|
|
|
|
|
alias_shadow = {
|
|
|
|
@inherit = $properties.pipelines.shadow_base;
|
2021-04-24 01:40:39 +00:00
|
|
|
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;
|
|
|
|
layout = alias_layout;
|
|
|
|
};
|
|
|
|
bsp_shadow = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.shadow_base;
|
2021-04-24 01:40:39 +00:00
|
|
|
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;
|
|
|
|
};
|
2021-02-14 02:35:06 +00:00
|
|
|
alias_depth = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.depth_base;
|
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;
|
2021-02-14 02:35:06 +00:00
|
|
|
layout = alias_layout;
|
|
|
|
};
|
|
|
|
alias_gbuf = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.gbuf_base;
|
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
|
|
|
},
|
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.vertexInput.alias;
|
|
|
|
inputAssembly = $properties.inputAssembly.alias;
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = alias_layout;
|
2021-01-25 15:55:45 +00:00
|
|
|
};
|
2021-02-14 02:35:06 +00:00
|
|
|
bsp_depth = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.depth_base;
|
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]",
|
2022-05-24 15:17:57 +00:00
|
|
|
"$properties.vertexInput.brush.bindings[1]",
|
2021-02-14 02:35:06 +00:00
|
|
|
);
|
|
|
|
attributes = (
|
2021-03-23 01:01:13 +00:00
|
|
|
"$properties.vertexInput.brush.attributes[0]",
|
2022-05-24 15:17:57 +00:00
|
|
|
"$properties.vertexInput.brush.attributes[2]",
|
2021-02-14 02:35:06 +00:00
|
|
|
);
|
|
|
|
};
|
2021-03-23 01:01:13 +00:00
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
2021-02-14 02:35:06 +00:00
|
|
|
layout = quakebsp_layout;
|
|
|
|
};
|
|
|
|
bsp_gbuf = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.gbuf_base;
|
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-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;
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = quakebsp_layout;
|
2021-01-23 11:42:53 +00:00
|
|
|
};
|
2021-03-25 06:54:34 +00:00
|
|
|
bsp_skybox = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.trans_base;
|
2021-03-25 06:54:34 +00:00
|
|
|
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
|
|
|
// doSkyBox
|
2022-02-17 16:15:38 +00:00
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
2021-12-06 11:38:06 +00:00
|
|
|
// doSkySheet
|
2022-02-17 16:15:38 +00:00
|
|
|
{ size = 4; offset = 4; constantID = 1; },
|
2021-03-25 06:54:34 +00:00
|
|
|
);
|
2022-02-17 16:15:38 +00:00
|
|
|
data = "array(1, 0)";
|
2021-03-25 06:54:34 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
layout = quakebsp_layout;
|
|
|
|
};
|
2021-02-19 02:14:54 +00:00
|
|
|
bsp_skysheet = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.trans_base;
|
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
|
|
|
// doSkyBox
|
2021-12-17 03:20:32 +00:00
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
2021-12-06 11:38:06 +00:00
|
|
|
// doSkySheet
|
2021-12-17 03:20:32 +00:00
|
|
|
{ size = 4; offset = 4; constantID = 1; },
|
2021-03-23 03:24:24 +00:00
|
|
|
);
|
2021-12-17 03:20:32 +00:00
|
|
|
data = "array(0, 1)";
|
2021-03-23 03:24:24 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
|
|
|
layout = quakebsp_layout;
|
|
|
|
};
|
|
|
|
bsp_turb = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.trans_base;
|
2021-03-23 03:24:24 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/quakebsp.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/bsp_turb.frag;
|
2021-01-23 11:42:53 +00:00
|
|
|
},
|
|
|
|
);
|
2021-03-23 01:01:13 +00:00
|
|
|
vertexInput = $properties.vertexInput.brush;
|
|
|
|
inputAssembly = $properties.inputAssembly.brush;
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = quakebsp_layout;
|
2021-01-19 16:25:54 +00:00
|
|
|
};
|
2022-05-07 01:08:46 +00:00
|
|
|
iqm_depth = {
|
|
|
|
@inherit = $properties.pipelines.depth_base;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/iqm.vert;
|
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
|
|
|
// IQMDepthOnly
|
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
);
|
|
|
|
data = "array(1)";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.iqm;
|
|
|
|
/*vertexInput = {
|
|
|
|
bindings = (
|
|
|
|
"$properties.vertexInput.iqm.bindings[0]",
|
|
|
|
);
|
|
|
|
attributes = (
|
|
|
|
"$properties.vertexInput.iqm.attributes[0]",
|
|
|
|
"$properties.vertexInput.iqm.attributes[1]",
|
|
|
|
"$properties.vertexInput.iqm.attributes[2]",
|
|
|
|
);
|
|
|
|
};*/
|
|
|
|
inputAssembly = $properties.inputAssembly.iqm;
|
|
|
|
layout = iqm_layout;
|
|
|
|
};
|
|
|
|
iqm_gbuf = {
|
|
|
|
@inherit = $properties.pipelines.gbuf_base;
|
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/iqm.vert;
|
|
|
|
specializationInfo = {
|
|
|
|
mapEntries = (
|
|
|
|
// !IQMDepthOnly
|
|
|
|
{ size = 4; offset = 0; constantID = 0; },
|
|
|
|
);
|
|
|
|
data = "array(0)";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/iqm.frag;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.iqm;
|
|
|
|
inputAssembly = $properties.inputAssembly.iqm;
|
|
|
|
layout = iqm_layout;
|
|
|
|
};
|
2021-12-16 14:17:01 +00:00
|
|
|
partdraw = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.trans_base;
|
2021-12-16 14:17:01 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/particle.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = geometry;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/particle.geom;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/particle.frag;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
vertexInput = $properties.vertexInput.particle;
|
|
|
|
inputAssembly = $properties.inputAssembly.sprite;
|
|
|
|
layout = partdraw_layout;
|
|
|
|
};
|
2021-12-14 05:44:16 +00:00
|
|
|
sprite_gbuf = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.gbuf_base;
|
2021-12-14 05:44:16 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_gbuf.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_gbuf.frag;
|
|
|
|
},
|
|
|
|
);
|
2021-12-14 16:22:05 +00:00
|
|
|
vertexInput = $properties.vertexInput.index_only;
|
2021-12-14 05:44:16 +00:00
|
|
|
inputAssembly = $properties.inputAssembly.sprite;
|
|
|
|
layout = sprite_layout;
|
|
|
|
};
|
|
|
|
sprite_depth = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.depth_base;
|
2021-12-14 05:44:16 +00:00
|
|
|
stages = (
|
|
|
|
{
|
|
|
|
stage = vertex;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_depth.vert;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/sprite_depth.frag;
|
|
|
|
},
|
|
|
|
);
|
2021-12-14 16:22:05 +00:00
|
|
|
vertexInput = $properties.vertexInput.index_only;
|
2021-12-14 05:44:16 +00:00
|
|
|
inputAssembly = $properties.inputAssembly.alias;
|
2021-12-14 16:22:05 +00:00
|
|
|
layout = sprite_layout;
|
2021-12-14 05:44:16 +00:00
|
|
|
};
|
2021-01-10 06:52:27 +00:00
|
|
|
twod = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.trans_base;//FIXME should be sparate
|
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;
|
|
|
|
rasterization = $properties.rasterization.counter_cw_cull_back;
|
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
|
|
|
};
|
2021-02-04 08:03:49 +00:00
|
|
|
layout = twod_layout;
|
2021-01-05 14:42:30 +00:00
|
|
|
};
|
2021-02-24 10:58:31 +00:00
|
|
|
lighting = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.comp_base;
|
2021-03-23 02:26:24 +00:00
|
|
|
subpass = 3;
|
2021-02-24 10:58:31 +00:00
|
|
|
stages = (
|
2022-05-06 10:38:14 +00:00
|
|
|
$properties.fstriangle.vertexStage,
|
2021-02-24 10:58:31 +00:00
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/lighting.frag;
|
2022-05-10 01:47:51 +00:00
|
|
|
//specializationInfo = {
|
|
|
|
// mapEntries = (
|
|
|
|
// { size = 4; offset = 0; constantID = 0; },
|
|
|
|
// );
|
|
|
|
// data = "array(uint($properties.limits.maxSamplers))";
|
|
|
|
//};
|
2021-02-24 10:58:31 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
layout = lighting_layout;
|
|
|
|
};
|
|
|
|
compose = {
|
2022-05-06 10:38:14 +00:00
|
|
|
@inherit = $properties.pipelines.comp_base;
|
2021-02-24 10:58:31 +00:00
|
|
|
subpass = 4;
|
|
|
|
stages = (
|
2022-05-06 10:38:14 +00:00
|
|
|
$properties.fstriangle.vertexStage,
|
2021-02-24 10:58:31 +00:00
|
|
|
{
|
|
|
|
stage = fragment;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/compose.frag;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
layout = compose_layout;
|
|
|
|
};
|
2022-05-06 10:38:14 +00:00
|
|
|
|
2021-12-16 14:17:01 +00:00
|
|
|
partphysics = {
|
|
|
|
stage = {
|
|
|
|
stage = compute;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/partphysics.comp;
|
|
|
|
};
|
|
|
|
layout = partphysics_layout;
|
|
|
|
};
|
|
|
|
partupdate = {
|
|
|
|
stage = {
|
|
|
|
stage = compute;
|
|
|
|
name = main;
|
|
|
|
module = $builtin/partupdate.comp;
|
|
|
|
};
|
|
|
|
layout = partupdate_layout;
|
|
|
|
};
|
2021-01-05 08:43:26 +00:00
|
|
|
};
|
2020-07-16 06:42:49 +00:00
|
|
|
}
|