| 8842 | } |
| 8843 | |
| 8844 | void Test() |
| 8845 | { |
| 8846 | wprintf(L"TESTING:\n"); |
| 8847 | |
| 8848 | if(false) |
| 8849 | { |
| 8850 | //////////////////////////////////////////////////////////////////////////////// |
| 8851 | // Temporarily insert custom tests here: |
| 8852 | return; |
| 8853 | } |
| 8854 | |
| 8855 | // # Simple tests |
| 8856 | |
| 8857 | #if VMA_DEBUG_MARGIN |
| 8858 | TestDebugMargin(); |
| 8859 | TestDebugMarginNotInVirtualAllocator(); |
| 8860 | #else |
| 8861 | TestJson(); |
| 8862 | TestBasics(); |
| 8863 | TestVirtualBlocks(); |
| 8864 | TestVirtualBlocksAlgorithms(); |
| 8865 | TestVirtualBlocksAlgorithmsBenchmark(); |
| 8866 | TestAllocationVersusResourceSize(); |
| 8867 | //TestGpuData(); // Not calling this because it's just testing the testing environment. |
| 8868 | TestPool_SameSize(); |
| 8869 | TestPool_MinBlockCount(); |
| 8870 | TestPool_MinAllocationAlignment(); |
| 8871 | TestPoolsAndAllocationParameters(); |
| 8872 | TestHeapSizeLimit(); |
| 8873 | #if VMA_DEBUG_INITIALIZE_ALLOCATIONS |
| 8874 | TestAllocationsInitialization(); |
| 8875 | #endif |
| 8876 | TestMemoryUsage(); |
| 8877 | TestAllocationWithAlignment(); |
| 8878 | TestDataUploadingWithStagingBuffer(); |
| 8879 | TestDataUploadingWithMappedMemory(); |
| 8880 | TestAdvancedDataUploading(); |
| 8881 | TestDeviceCoherentMemory(); |
| 8882 | TestStatistics(); |
| 8883 | TestAliasing(); |
| 8884 | TestAllocationAliasing(); |
| 8885 | TestMapping(); |
| 8886 | TestAllocationMemoryCopy(); |
| 8887 | TestMappingHysteresis(); |
| 8888 | TestDeviceLocalMapped(); |
| 8889 | TestMaintenance5(); |
| 8890 | TestWin32HandlesExport(); |
| 8891 | TestWin32HandlesImport(); |
| 8892 | TestMappingMultithreaded(); |
| 8893 | TestLinearAllocator(); |
| 8894 | ManuallyTestLinearAllocator(); |
| 8895 | TestLinearAllocatorMultiBlock(); |
| 8896 | TestAllocationAlgorithmsCorrectness(); |
| 8897 | |
| 8898 | BasicTestTLSF(); |
| 8899 | BasicTestAllocatePages(); |
| 8900 | |
| 8901 | if (VK_KHR_buffer_device_address_enabled) |
no test coverage detected