| 7622 | } |
| 7623 | |
| 7624 | static void PerformCustomMainTest(FILE* file) |
| 7625 | { |
| 7626 | Config config{}; |
| 7627 | config.RandSeed = 65735476; |
| 7628 | //config.MaxBytesToAllocate = 4ull * 1024 * 1024; // 4 MB |
| 7629 | config.MaxBytesToAllocate = 4ull * 1024 * 1024 * 1024; // 4 GB |
| 7630 | config.MemUsageProbability[0] = 1; // VMA_MEMORY_USAGE_GPU_ONLY |
| 7631 | config.FreeOrder = FREE_ORDER::FORWARD; |
| 7632 | config.ThreadCount = 16; |
| 7633 | config.ThreadsUsingCommonAllocationsProbabilityPercent = 50; |
| 7634 | config.AllocationStrategy = 0; |
| 7635 | |
| 7636 | // Buffers |
| 7637 | //config.AllocationSizes.push_back({4, 16, 1024}); |
| 7638 | config.AllocationSizes.push_back({4, 0x10000, 0xA00000}); // 64 KB ... 10 MB |
| 7639 | |
| 7640 | // Images |
| 7641 | //config.AllocationSizes.push_back({4, 0, 0, 4, 32}); |
| 7642 | //config.AllocationSizes.push_back({4, 0, 0, 256, 2048}); |
| 7643 | |
| 7644 | config.BeginBytesToAllocate = config.MaxBytesToAllocate * 5 / 100; |
| 7645 | config.AdditionalOperationCount = 1024; |
| 7646 | |
| 7647 | Result result{}; |
| 7648 | VkResult res = MainTest(result, config); |
| 7649 | TEST(res == VK_SUCCESS); |
| 7650 | WriteMainTestResult(file, "Foo", "CustomTest", config, result); |
| 7651 | } |
| 7652 | |
| 7653 | static void PerformCustomPoolTest(FILE* file) |
| 7654 | { |
no test coverage detected