mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-08 21:50:08 +00:00
Correct const usage in ConstExpression1DArrayCopy
This commit is contained in:
parent
dc954e0f6d
commit
c05772e82d
@ -5441,14 +5441,14 @@ static const std::string constExpressionArrayCopy = R"(
|
||||
public:
|
||||
VULKAN_HPP_CONSTEXPR_14 static void copy( T dst[N], const T src[N] ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_CONSTEXPR_14 size_t C = N / 2;
|
||||
const size_t C = N / 2;
|
||||
PrivateConstExpression1DArrayCopy<T, C, C>::copy( dst, src );
|
||||
PrivateConstExpression1DArrayCopy<T, N - C, N - C>::copy(dst + C, src + C);
|
||||
}
|
||||
|
||||
VULKAN_HPP_CONSTEXPR_14 static void copy( T dst[N], std::array<T, N> const& src ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
VULKAN_HPP_CONSTEXPR_14 size_t C = N / 2;
|
||||
const size_t C = N / 2;
|
||||
PrivateConstExpression1DArrayCopy<T, C, C>::copy(dst, src.data());
|
||||
PrivateConstExpression1DArrayCopy<T, N - C, N - C>::copy(dst + C, src.data() + C);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user