Iter all our layers, check whether all satisfied or not.
- Returns
- Returns true if all layers satisfied.
Get all layer extensions nums.
Get all instance layer that supported.
Check whether all layer satisfied.
Get all layer extensions nums.
Get all instance layer that supported.
Check whether all layer satisfied.
Definition at line 257 of file VulkanInstance.cpp.
258 {
260
264 uint32_t layerCount;
265 vkEnumerateInstanceLayerProperties(&layerCount, nullptr);
266
270 std::vector<VkLayerProperties> availableLayers(layerCount);
271 vkEnumerateInstanceLayerProperties(&layerCount, availableLayers.data());
272
277
278 for (const auto& layer : availableLayers)
279 {
280 requiredLayers.erase(layer.layerName);
281 }
282
283 if (!requiredLayers.empty())
284 {
285 for (auto& set : requiredLayers)
286 {
287 std::stringstream ss;
288 ss << "Instance Layer Required: " << set << ", Which is not satisfied";
289
290 SPICES_CORE_WARN(ss.str())
291 }
292 }
293
294 return requiredLayers.empty();
295 }
#define SPICES_PROFILE_ZONE
std::vector< const char * > m_LayerProperties
Instance Layer Properties.
Referenced by VulkanInstance().