mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-10 14:40:07 +00:00
Correct indexing in ConstExpressionArrayCopy. (#388)
This commit is contained in:
parent
e26cb8113a
commit
a5d14b5c16
@ -4919,7 +4919,7 @@ static const std::string constExpressionArrayCopy = R"(
|
||||
public:
|
||||
VULKAN_HPP_CONSTEXPR static void copy(T dst[N], std::array<T,N> const& src)
|
||||
{
|
||||
dst[I] = src[I];
|
||||
dst[I-1] = src[I-1];
|
||||
ConstExpressionArrayCopy<T, N, I - 1>::copy(dst, src);
|
||||
}
|
||||
};
|
||||
|
@ -2659,7 +2659,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
public:
|
||||
VULKAN_HPP_CONSTEXPR static void copy(T dst[N], std::array<T,N> const& src)
|
||||
{
|
||||
dst[I] = src[I];
|
||||
dst[I-1] = src[I-1];
|
||||
ConstExpressionArrayCopy<T, N, I - 1>::copy(dst, src);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user