diff --git a/examples/instancing/instancing.cpp b/examples/instancing/instancing.cpp index d677153..8d48482 100644 --- a/examples/instancing/instancing.cpp +++ b/examples/instancing/instancing.cpp @@ -379,10 +379,10 @@ public: // Vertex input bindings // The instancing pipeline uses a vertex input state with two bindings bindingDescriptions = { + // Binding point 1: Instanced data at per-instance rate + vks::initializers::vertexInputBindingDescription(INSTANCE_BUFFER_BIND_ID, sizeof(InstanceData), VK_VERTEX_INPUT_RATE_INSTANCE), // Binding point 0: Mesh vertex layout description at per-vertex rate vks::initializers::vertexInputBindingDescription(VERTEX_BUFFER_BIND_ID, vertexLayout.stride(), VK_VERTEX_INPUT_RATE_VERTEX), - // Binding point 1: Instanced data at per-instance rate - vks::initializers::vertexInputBindingDescription(INSTANCE_BUFFER_BIND_ID, sizeof(InstanceData), VK_VERTEX_INPUT_RATE_INSTANCE) }; // Vertex attribute bindings