Skip to content
Snippets Groups Projects
Commit 3f60e6b3 authored by Artur Wasmut's avatar Artur Wasmut
Browse files

create poper singular binding with all attachments.

parent b01d37c7
No related branches found
No related tags found
1 merge request!88Resolve "Indirect Draw"
Pipeline #27236 passed
......@@ -165,9 +165,6 @@ int main(int argc, const char** argv) {
);
*/
vkcv::Core core = vkcv::Core::create(
applicationName,
VK_MAKE_VERSION(0, 0, 1),
......@@ -227,12 +224,8 @@ int main(int argc, const char** argv) {
// vertex layout for the pipeline. (assumed to be) used by all sponza meshes.
const std::vector<vkcv::VertexAttachment> vertexAttachments = sponzaProgram.getVertexAttachments();
std::vector<vkcv::VertexBinding> bindings;
for (size_t i = 0; i < vertexAttachments.size(); i++)
{
bindings.push_back(vkcv::VertexBinding(i, { vertexAttachments[i] }));
}
const vkcv::VertexLayout sponzaVertexLayout (bindings);
vkcv::VertexBinding binding(0, vertexAttachments);
const vkcv::VertexLayout sponzaVertexLayout({binding});
// recreation of VertexBufferBindings YET AGAIN,
// since these are used in the command buffer to bind and draw from the vertex shaders
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment