summaryrefslogtreecommitdiffstatsci
path: root/src/vkvg_device_internal.c
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-01-15 16:02:48 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-01-15 16:02:48 +0100
commit07e316316bc7a7529c2d9b3503771eab34775bc3 (patch)
tree5881f36c214012206ff0f75a460cac3579c8181d /src/vkvg_device_internal.c
parente5b3a3e3eda98688b731ee5e59da6725315b220c (diff)
test with solid color onlysolidColorOnlyShader
Diffstat (limited to 'src/vkvg_device_internal.c')
-rw-r--r--src/vkvg_device_internal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vkvg_device_internal.c b/src/vkvg_device_internal.c
index 04fa93b..53645a1 100644
--- a/src/vkvg_device_internal.c
+++ b/src/vkvg_device_internal.c
@@ -288,7 +288,7 @@ void _setupPipelines(VkvgDevice dev)
VkPipelineVertexInputStateCreateInfo vertexInputState = { .sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO,
.vertexBindingDescriptionCount = 1,
.pVertexBindingDescriptions = &vertexInputBinding,
- .vertexAttributeDescriptionCount = 3,
+ .vertexAttributeDescriptionCount = 2,
.pVertexAttributeDescriptions = vertexInputAttributs };
#ifdef VKVG_WIRED_DEBUG
VkShaderModule modVert, modFrag, modFragWired;
@@ -409,13 +409,13 @@ void _createDescriptorSetLayout (VkvgDevice dev) {
{VK_SHADER_STAGE_VERTEX_BIT,0,sizeof(push_constants)},
//{VK_SHADER_STAGE_FRAGMENT_BIT,0,sizeof(push_constants)}
};
- //VkDescriptorSetLayout dsls[] = {dev->dslSrc,dev->dslGrad};
+ VkDescriptorSetLayout dsls[] = {dev->dslSrc,dev->dslGrad};
VkPipelineLayoutCreateInfo pipelineLayoutCreateInfo = { .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
.pushConstantRangeCount = 1,
.pPushConstantRanges = (VkPushConstantRange*)&pushConstantRange,
- .setLayoutCount = 0,
- .pSetLayouts = VK_NULL_HANDLE };
+ .setLayoutCount = 2,
+ .pSetLayouts = dsls };
VK_CHECK_RESULT(vkCreatePipelineLayout(dev->vkDev, &pipelineLayoutCreateInfo, NULL, &dev->pipelineLayout));
}