mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-10 12:28:48 -04:00
Merge pull request #667 from asuessenbach/663
Guard use of ArrayProxyNoTemporaries with structure setter functions
This commit is contained in:
commit
ad7cbb2c77
@ -3952,12 +3952,14 @@ void VulkanHppGenerator::appendStructSetter( std::string & str
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const std::string setArrayTemplate = R"(
|
static const std::string setArrayTemplate = R"(
|
||||||
|
#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE)
|
||||||
${templateHeader}${structureName} & set${ArrayName}( VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<${memberType}> const & ${arrayName}_ ) VULKAN_HPP_NOEXCEPT
|
${templateHeader}${structureName} & set${ArrayName}( VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<${memberType}> const & ${arrayName}_ ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
${lenName} = ${lenValue};
|
${lenName} = ${lenValue};
|
||||||
${memberName} = ${arrayName}_.data();
|
${memberName} = ${arrayName}_.data();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
#endif // !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE)
|
||||||
)";
|
)";
|
||||||
|
|
||||||
str += replaceWithMap( setArrayTemplate,
|
str += replaceWithMap( setArrayTemplate,
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user