Introduce raii-compliant handle wrapper classes.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user