Refactor top-level function to generate vulkan.hpp
This commit is contained in:
12
snippets/ArrayWrapper2D.hpp
Normal file
12
snippets/ArrayWrapper2D.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
template <typename T, size_t N, size_t M>
|
||||
class ArrayWrapper2D : public std::array<ArrayWrapper1D<T, M>, N>
|
||||
{
|
||||
public:
|
||||
VULKAN_HPP_CONSTEXPR ArrayWrapper2D() VULKAN_HPP_NOEXCEPT
|
||||
: std::array<ArrayWrapper1D<T, M>, N>()
|
||||
{}
|
||||
|
||||
VULKAN_HPP_CONSTEXPR ArrayWrapper2D( std::array<std::array<T, M>, N> const & data ) VULKAN_HPP_NOEXCEPT
|
||||
: std::array<ArrayWrapper1D<T, M>, N>( *reinterpret_cast<std::array<ArrayWrapper1D<T, M>, N> const *>( &data ) )
|
||||
{}
|
||||
};
|
||||
Reference in New Issue
Block a user