From 5425a096bc4b155b2f7f81fe340b56c6ed8ae886 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Mon, 23 Jan 2017 16:03:53 +0100 Subject: [PATCH] Fixed buffer types --- distancefieldfonts/distancefieldfonts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distancefieldfonts/distancefieldfonts.cpp b/distancefieldfonts/distancefieldfonts.cpp index 413a5e80..98719cfc 100644 --- a/distancefieldfonts/distancefieldfonts.cpp +++ b/distancefieldfonts/distancefieldfonts.cpp @@ -331,18 +331,18 @@ public: v.pos[1] -= 0.5f; } - // Generate device local buffers for the text vertices and indices and upload the data + // Generate host accesible buffers for the text vertices and indices and upload the data VK_CHECK_RESULT(vulkanDevice->createBuffer( VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, - VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, + VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, &vertexBuffer, vertices.size() * sizeof(Vertex), vertices.data())); VK_CHECK_RESULT(vulkanDevice->createBuffer( VK_BUFFER_USAGE_INDEX_BUFFER_BIT, - VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, + VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, &indexBuffer, indices.size() * sizeof(uint32_t), indices.data()));