+ if(!vku_write_memory(vk_tex_coords->mem_pool, tsz,
+ (void *)tex_coords.data())) {
+ fprintf(stderr, "Failed to write the texture coordinates to GPU.\n");
+ return false;
+ }
+ if(vkBindBufferMemory(vk_device, vk_tex_coords->buf,
+ vk_tex_coords->mem_pool, 0) != VK_SUCCESS) {
+ fprintf(stderr, "Failed to bind the tex coordinates buffer memory.\n");
+ return false;
+ }
+
+ if(!vku_write_memory(vk_indices->mem_pool, isz, (void *)indices.data())) {
+ fprintf(stderr, "Failed to write the indices to GPU.\n");
+ return false;
+ }
+ if(vkBindBufferMemory(vk_device, vk_indices->buf, vk_indices->mem_pool, 0)
+ != VK_SUCCESS) {
+ fprintf(stderr, "Failed to bind the index buffer memory.\n");
+ return false;
+ }