Lines Matching defs:info

77     VmaAllocatorCreateInfo info;
78 info.flags = 0; // OH ISSUE: enable vma lock protect
82 info.flags |= VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT;
85 info.physicalDevice = physicalDevice;
86 info.device = device;
92 info.preferredLargeHeapBlockSize = SkGetVmaBlockSizeMB() * 1024 * 1024; // 1024 = 1K
94 info.preferredLargeHeapBlockSize = 4 * 1024 * 1024;
96 info.maxBlockCount = maxBlockCount;
97 info.pAllocationCallbacks = nullptr;
98 info.pDeviceMemoryCallbacks = nullptr;
99 info.frameInUseCount = 0;
100 info.pHeapSizeLimit = nullptr;
101 info.pVulkanFunctions = &functions;
102 info.pRecordSettings = nullptr;
103 info.instance = instance;
104 info.vulkanApiVersion = physicalDeviceVersion;
107 vmaCreateAllocator(&info, &allocator);
140 static void FirstPreAllocMemory(VmaAllocator allocator, VmaAllocationCreateInfo info) {
153 result = vmaAllocateReservedMemoryForImage(allocator, fakeImage, &info, &reservedAllocation, nullptr);
196 VmaAllocationCreateInfo info;
197 info.flags = 0;
198 info.usage = VMA_MEMORY_USAGE_UNKNOWN;
199 info.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
200 info.preferredFlags = 0;
201 info.memoryTypeBits = 0;
202 info.pool = VK_NULL_HANDLE;
203 info.pUserData = nullptr;
206 info.flags |= VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT;
210 info.requiredFlags |= VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT;
214 info.requiredFlags |= VK_MEMORY_PROPERTY_PROTECTED_BIT;
218 VkResult result = vmaAllocateMemoryForImage(fAllocator, image, &info, &allocation, nullptr);
231 VkResult result2 = vmaSwapReservedBlock(fAllocator, image, &info, &allocation, nullptr);
236 FirstPreAllocMemory(fAllocator, info);
248 VkResult result3 = vmaAllocateMemoryForImage(fAllocator, image, &info, &newAllocation, nullptr);
262 VmaAllocationCreateInfo info;
263 info.flags = 0;
264 info.usage = VMA_MEMORY_USAGE_UNKNOWN;
265 info.memoryTypeBits = 0;
266 info.pool = VK_NULL_HANDLE;
267 info.pUserData = nullptr;
271 info.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
272 info.preferredFlags = 0;
287 info.requiredFlags =
289 info.preferredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
292 info.requiredFlags =
296 info.requiredFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
297 info.preferredFlags = VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
302 (info.requiredFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)) {
303 info.requiredFlags |= VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
307 info.flags |= VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT;
311 info.preferredFlags |= VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT;
316 info.flags |= VMA_ALLOCATION_CREATE_MAPPED_BIT;
320 VkResult result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr);