mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-10 12:28:48 -04: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:
|
public:
|
||||||
VULKAN_HPP_CONSTEXPR static void copy(T dst[N], std::array<T,N> const& src)
|
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);
|
ConstExpressionArrayCopy<T, N, I - 1>::copy(dst, src);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -2659,7 +2659,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
public:
|
public:
|
||||||
VULKAN_HPP_CONSTEXPR static void copy(T dst[N], std::array<T,N> const& src)
|
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);
|
ConstExpressionArrayCopy<T, N, I - 1>::copy(dst, src);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user