• Home
  • Raw
  • Download

Lines Matching refs:layer

98     void* GetGPA(const Layer& layer, const std::string_view gpa_name) const;
245 Layer layer; in EnumerateLayers() local
246 layer.properties = props; in EnumerateLayers()
247 layer.library_idx = library_idx; in EnumerateLayers()
248 layer.is_global = false; in EnumerateLayers()
261 layer.instance_extensions.resize(count); in EnumerateLayers()
263 props.layerName, &count, layer.instance_extensions.data()); in EnumerateLayers()
276 layer.is_global = true; in EnumerateLayers()
281 if (layer.is_global && enumerate_device_extensions) { in EnumerateLayers()
292 layer.device_extensions.resize(count); in EnumerateLayers()
295 layer.device_extensions.data()); in EnumerateLayers()
306 instance_layers.push_back(layer); in EnumerateLayers()
308 (layer.is_global) ? "global" : "instance", props.layerName, in EnumerateLayers()
315 void* LayerLibrary::GetGPA(const Layer& layer, const std::string_view gpa_name) const { in GetGPA() argument
316 std::string layer_name { layer.properties.layerName }; in GetGPA()
428 for (auto& layer : g_layer_libraries) { in DiscoverLayersInPathList() local
429 if (layer.GetFilename() == filename) { in DiscoverLayersInPathList()
453 void* GetLayerGetProcAddr(const Layer& layer, in GetLayerGetProcAddr() argument
455 const LayerLibrary& library = g_layer_libraries[layer.library_idx]; in GetLayerGetProcAddr()
456 return library.GetGPA(layer, gpa_name); in GetLayerGetProcAddr()
480 auto layer = in FindLayer() local
485 return (layer != g_instance_layers.cend()) ? &*layer : nullptr; in FindLayer()
488 const VkLayerProperties& GetLayerProperties(const Layer& layer) { in GetLayerProperties() argument
489 return layer.properties; in GetLayerProperties()
492 bool IsLayerGlobal(const Layer& layer) { in IsLayerGlobal() argument
493 return layer.is_global; in IsLayerGlobal()
496 const VkExtensionProperties* GetLayerInstanceExtensions(const Layer& layer, in GetLayerInstanceExtensions() argument
498 count = static_cast<uint32_t>(layer.instance_extensions.size()); in GetLayerInstanceExtensions()
499 return layer.instance_extensions.data(); in GetLayerInstanceExtensions()
502 const VkExtensionProperties* GetLayerDeviceExtensions(const Layer& layer, in GetLayerDeviceExtensions() argument
504 count = static_cast<uint32_t>(layer.device_extensions.size()); in GetLayerDeviceExtensions()
505 return layer.device_extensions.data(); in GetLayerDeviceExtensions()
508 const VkExtensionProperties* FindLayerInstanceExtension(const Layer& layer, in FindLayerInstanceExtension() argument
510 return FindExtension(layer.instance_extensions, name); in FindLayerInstanceExtension()
513 const VkExtensionProperties* FindLayerDeviceExtension(const Layer& layer, in FindLayerDeviceExtension() argument
515 return FindExtension(layer.device_extensions, name); in FindLayerDeviceExtension()
518 LayerRef GetLayerRef(const Layer& layer) { in GetLayerRef() argument
519 LayerLibrary& library = g_layer_libraries[layer.library_idx]; in GetLayerRef()
520 return LayerRef((library.Open()) ? &layer : nullptr); in GetLayerRef()
523 LayerRef::LayerRef(const Layer* layer) : layer_(layer) {} in LayerRef() argument