@@ -6181,7 +6181,8 @@ static void TestDataUploadingWithStagingBuffer()
6181
6181
TEST (result == VK_SUCCESS);
6182
6182
6183
6183
TEST (stagingBufferAllocInfo.pMappedData != nullptr );
6184
- vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), stagingBufferAlloc, 0 , bufferData.size ());
6184
+ result = vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), stagingBufferAlloc, 0 , bufferData.size ());
6185
+ TEST (result == VK_SUCCESS);
6185
6186
6186
6187
BeginSingleTimeCommands ();
6187
6188
@@ -6251,7 +6252,8 @@ static void TestDataUploadingWithMappedMemory() {
6251
6252
TEST (memPropFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
6252
6253
6253
6254
TEST (uniformBufferAllocInfo.pMappedData != nullptr );
6254
- vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), uniformBufferAlloc, 0 , bufferData.size ());
6255
+ result = vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), uniformBufferAlloc, 0 , bufferData.size ());
6256
+ TEST (result == VK_SUCCESS);
6255
6257
6256
6258
BeginSingleTimeCommands ();
6257
6259
@@ -6303,7 +6305,8 @@ static void TestAdvancedDataUploading() {
6303
6305
if (memPropFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) {
6304
6306
// The allocation ended up as mapped memory.
6305
6307
TEST (uniformBufferAllocInfo.pMappedData != nullptr );
6306
- vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), uniformBufferAlloc, 0 , bufferData.size ());
6308
+ result = vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), uniformBufferAlloc, 0 , bufferData.size ());
6309
+ TEST (result == VK_SUCCESS);
6307
6310
6308
6311
BeginSingleTimeCommands ();
6309
6312
@@ -6338,9 +6341,7 @@ static void TestAdvancedDataUploading() {
6338
6341
TEST (result == VK_SUCCESS);
6339
6342
6340
6343
TEST (stagingBufferAllocInfo.pMappedData != nullptr );
6341
- vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), stagingBufferAlloc, 0 , bufferData.size ());
6342
-
6343
- result = vmaFlushAllocation (g_hAllocator, uniformBufferAlloc, 0 , VK_WHOLE_SIZE);
6344
+ result = vmaCopyMemoryToAllocation (g_hAllocator, bufferData.data (), stagingBufferAlloc, 0 , bufferData.size ());
6344
6345
TEST (result == VK_SUCCESS);
6345
6346
6346
6347
BeginSingleTimeCommands ();
0 commit comments