Lines Matching refs:count

68     VkResult Parse(const char* const* names, uint32_t count) {
76 if (!arr.count)
79 names_ = AllocateNameArray(arr.count + count);
84 for (uint32_t i = 0; i < arr.count; i++)
87 name_count_ = arr.count;
90 for (uint32_t i = 0; i < count; i++) {
114 uint32_t count;
130 if (implicit_layers_.count <= 0) {
136 std::sort(arr.elements, arr.elements + arr.count,
210 auto& layer = arr.elements[arr.count++];
215 ALOGV("Added implicit layer %s", GetImplicitLayerName(arr.count - 1));
242 while (arr.count + layer_count > arr.max_count) {
256 arr.count = 0;
300 for (uint32_t i = 0; i < arr.count; i++) {
308 const char** AllocateNameArray(uint32_t count) const {
310 allocator_.pUserData, sizeof(const char*) * count,
343 VkResult Parse(const char* const* names, uint32_t count) {
348 names_ = AllocateNameArray(count + 1);
352 std::copy(names, names + count, names_);
354 name_count_ = count;
374 const char** AllocateNameArray(uint32_t count) const {
376 allocator_.pUserData, sizeof(const char*) * count,
417 uint32_t& count);
434 ActiveLayer* AllocateLayerArray(uint32_t count) const;
456 VkExtensionProperties* AllocateDriverExtensionArray(uint32_t count) const;
464 uint32_t count,
561 // count loaded layers for proper destructions on errors
640 LayerChain::ActiveLayer* LayerChain::AllocateLayerArray(uint32_t count) const {
646 allocator_.pUserData, sizeof(ActiveLayer) * count, alignof(ActiveLayer),
901 uint32_t count;
903 EnumerateInstanceExtensionProperties(nullptr, &count, nullptr);
904 if (result == VK_SUCCESS && count) {
905 driver_extensions_ = AllocateDriverExtensionArray(count);
907 nullptr, &count, driver_extensions_)
913 driver_extension_count_ = count;
938 uint32_t count;
940 &count, nullptr);
941 if (result == VK_SUCCESS && count) {
942 driver_extensions_ = AllocateDriverExtensionArray(count);
945 physical_dev, nullptr, &count, driver_extensions_)
951 driver_extension_count_ = count;
970 uint32_t count) const {
972 allocator_.pUserData, sizeof(VkExtensionProperties) * count,
1013 uint32_t count,
1015 for (uint32_t i = 0; i < count; i++)
1153 uint32_t& count) {
1154 count = GetData(physical_dev).layer_count;
1209 uint32_t count = GetLayerCount();
1212 *pPropertyCount = count;
1216 uint32_t copied = std::min(*pPropertyCount, count);
1221 return (copied == count) ? VK_SUCCESS : VK_INCOMPLETE;
1236 uint32_t count;
1238 GetLayerInstanceExtensions(*layer, count);
1240 if (!pProperties || *pPropertyCount > count)
1241 *pPropertyCount = count;
1245 return *pPropertyCount < count ? VK_INCOMPLETE : VK_SUCCESS;
1256 uint32_t count;
1258 LayerChain::GetActiveLayers(physicalDevice, count);
1261 *pPropertyCount = count;
1265 uint32_t copied = std::min(*pPropertyCount, count);
1270 return (copied == count) ? VK_SUCCESS : VK_INCOMPLETE;
1286 uint32_t count;
1288 GetLayerDeviceExtensions(*layer, count);
1290 if (!pProperties || *pPropertyCount > count)
1291 *pPropertyCount = count;
1295 return *pPropertyCount < count ? VK_INCOMPLETE : VK_SUCCESS;