| 4719 | } |
| 4720 | |
| 4721 | std::string VulkanHppGenerator::generateConstexprString( std::pair<std::string, StructData> const & structData ) const |
| 4722 | { |
| 4723 | // structs with a VkBaseInStructure and VkBaseOutStructure can't be a constexpr! |
| 4724 | bool const isConstExpression = ( structData.first != "VkBaseInStructure" ) && ( structData.first != "VkBaseOutStructure" ); |
| 4725 | return isConstExpression |
| 4726 | ? ( std::string( "VULKAN_HPP_CONSTEXPR" ) + |
| 4727 | ( containsDeprecated( structData.second.members ) |
| 4728 | ? "_17 " |
| 4729 | : ( ( containsUnion( structData.first ) || containsArray( structData.first ) || containsDeprecated( structData.second.members ) ) ? "_14 " |
| 4730 | : " " ) ) ) |
| 4731 | : ""; |
| 4732 | } |
| 4733 | |
| 4734 | std::string VulkanHppGenerator::generateConstexprDefines() const |
| 4735 | { |
nothing calls this directly
no outgoing calls
no test coverage detected