Add missing const-qualifier in the static_cast in function T const & StructureChain::getFeatures2() const.

This commit is contained in:
asuessenbach
2020-11-09 09:55:45 +01:00
parent 7abf60533a
commit e159e685d4
3 changed files with 5 additions and 3 deletions

View File

@@ -55,7 +55,9 @@ int main( int /*argc*/, char ** /*argv*/ )
// some valid StructureChains
vk::StructureChain<vk::PhysicalDeviceProperties2> sc0;
vk::StructureChain<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceIDProperties> sc1;
const vk::StructureChain<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceIDProperties> sc1;
auto pdp = sc1.get<vk::PhysicalDeviceProperties2>();
unused( pdp );
vk::StructureChain<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceMaintenance3Properties> sc2;
vk::StructureChain<vk::PhysicalDeviceProperties2, vk::PhysicalDevicePushDescriptorPropertiesKHR> sc3;
vk::StructureChain<vk::PhysicalDeviceProperties2,