Decode vertex data directly into the vertex pushbuffer, saving a memcpy.

This commit is contained in:
Henrik Rydgard committed 2016-03-20 19:35:03 +01:00
1 parent d7ffc39d2a
commit 5d19f3dfb8
8 files changed
+93 -97

No files matched your search

+1 -1
View File
@@ -308,7 +308,7 @@ void VulkanTexture::CreateDirect(int w, int h, int numMips, VkFormat format, VkI
assert(res == VK_SUCCESS);
}
void VulkanTexture::UploadMip(int mip, int mipWidth, int mipHeight, VkBuffer buffer, size_t offset, size_t rowLength) {
void VulkanTexture::UploadMip(int mip, int mipWidth, int mipHeight, VkBuffer buffer, uint32_t offset, size_t rowLength) {
VkBufferImageCopy copy_region = {};
copy_region.bufferOffset = offset;
copy_region.bufferRowLength = (uint32_t)rowLength;