Introduce raii-compliant handle wrapper classes.

This commit is contained in:
asuessenbach
2021-02-17 10:49:59 +01:00
parent 8dc12ba963
commit 2cb1c19c7f
165 changed files with 32669 additions and 2892 deletions

View File

@@ -47,7 +47,7 @@ int main( int /*argc*/, char ** /*argv*/ )
{
std::vector<vk::ExtensionProperties> extensionProperties =
vk::enumerateInstanceExtensionProperties( vk::Optional<const std::string>( layerProperty.layerName ) );
propertyData.push_back( PropertyData( layerProperty, extensionProperties ) );
propertyData.emplace_back( layerProperty, extensionProperties );
}
/* VULKAN_KEY_END */
@@ -62,9 +62,10 @@ int main( int /*argc*/, char ** /*argv*/ )
for ( auto const & pd : propertyData )
{
std::cout << pd.layerProperties.layerName << std::endl;
std::cout << "Layer Extensions: ";
if ( pd.extensionProperties.empty() )
{
std::cout << "Layer Extension: None";
std::cout << "None";
}
else
{