From 9aa21f85fcf9fae12ab607c5dea8addf501716ea Mon Sep 17 00:00:00 2001 From: mocabe Date: Thu, 2 Jul 2020 12:16:14 +0900 Subject: [PATCH] [samples] Fix compilation of InstanceLayerExtensionProperties --- .../InstanceLayerExtensionProperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/InstanceLayerExtensionProperties/InstanceLayerExtensionProperties.cpp b/samples/InstanceLayerExtensionProperties/InstanceLayerExtensionProperties.cpp index 3e3bf6c..1bf4e3e 100644 --- a/samples/InstanceLayerExtensionProperties/InstanceLayerExtensionProperties.cpp +++ b/samples/InstanceLayerExtensionProperties/InstanceLayerExtensionProperties.cpp @@ -49,7 +49,7 @@ int main( int /*argc*/, char ** /*argv*/ ) for ( auto const & layerProperty : layerProperties ) { std::vector extensionProperties = - vk::enumerateInstanceExtensionProperties( std::string( layerProperty.layerName ) ); + vk::enumerateInstanceExtensionProperties( vk::Optional( layerProperty.layerName ) ); propertyData.push_back( PropertyData( layerProperty, extensionProperties ) ); }