Skip to content

finite_render_create_vertex_input

The finite_render_create_vertex_input function creates a Vulkan vertex input state from the provided vertex binding and attribute descriptions for a FiniteRender context.

VkPipelineVertexInputStateCreateInfo finite_render_create_vertex_input(
FiniteRender *render,
FiniteRenderVertexInputInfo *vertex
);
TypeDescription
FiniteRender *renderThe Vulkan rendering context. Must be valid.
FiniteRenderVertexInputInfo *vertexContains vertex binding descriptions, attribute descriptions, and counts.
FiniteRenderVertexInputInfo vertex_info = {
._vertexBindings = 1,
.vertexBindingDescriptions = &bindingDescription,
._vertexAtributes = 2,
.vertexAttributeDescriptions = attributeDescriptions,
.flags = 0,
.next = NULL
};
VkPipelineVertexInputStateCreateInfo inputState = finite_render_create_vertex_input(render, &vertex_info);

Both render and vertex must not be NULL.

The returned VkPipelineVertexInputStateCreateInfo can be used directly in VkGraphicsPipelineCreateInfo.

Ensure vertex->vertexBindingDescriptions and vertex->vertexAttributeDescriptions remain valid for the lifetime of the pipeline creation call.