Pass vertex buffer endianness into the BufferCache

IssueCopy: Actually issue the pipeline barrier to transition the image
This commit is contained in:
Dr. Chat
2016-06-03 20:00:28 -05:00
parent 6dab81d0cd
commit 2a924d2b05
3 changed files with 35 additions and 34 deletions

View File

@@ -67,7 +67,7 @@ class BufferCache {
// Returns a buffer and offset that can be used with vkCmdBindVertexBuffers.
// Size will be VK_WHOLE_SIZE if the data could not be uploaded (OOM).
std::pair<VkBuffer, VkDeviceSize> UploadVertexBuffer(
const void* source_ptr, size_t source_length,
const void* source_ptr, size_t source_length, Endian endian,
std::shared_ptr<ui::vulkan::Fence> fence);
// Flushes all pending data to the GPU.