[samples] Fix compilation of InstanceLayerExtensionProperties

This commit is contained in:
mocabe 2020-07-02 12:16:14 +09:00
parent 237d51d478
commit 9aa21f85fc

View File

@ -49,7 +49,7 @@ int main( int /*argc*/, char ** /*argv*/ )
for ( auto const & layerProperty : layerProperties ) for ( auto const & layerProperty : layerProperties )
{ {
std::vector<vk::ExtensionProperties> extensionProperties = std::vector<vk::ExtensionProperties> extensionProperties =
vk::enumerateInstanceExtensionProperties( std::string( layerProperty.layerName ) ); vk::enumerateInstanceExtensionProperties( vk::Optional<const std::string>( layerProperty.layerName ) );
propertyData.push_back( PropertyData( layerProperty, extensionProperties ) ); propertyData.push_back( PropertyData( layerProperty, extensionProperties ) );
} }