Combine two types of commands into one generation function.

This commit is contained in:
asuessenbach
2022-04-06 10:33:08 +02:00
parent 1739c1d0e1
commit d50485c5c7
8 changed files with 197 additions and 220 deletions

View File

@@ -272,6 +272,8 @@ int main( int /*argc*/, char ** /*argv*/ )
vk::UniquePipeline graphicsPipeline3 =
std::move( device->createGraphicsPipelinesUnique<vk::DispatchLoaderDynamic>( *pipelineCache, graphicsPipelineCreateInfo ).value[0] );
std::vector<vk::UniqueDescriptorSet> descriptorSets = device->allocateDescriptorSetsUnique( {} );
// destroy the non-Unique surface used here
instance->destroySurfaceKHR( surfaceData.surface );
}