Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
LayoutTraits.hpp File Reference
#include <cstddef>
#include <span>
#include <type_traits>
#include <mv/math/Vec3.hpp>
#include <mv/math/gpu/Vectors.hpp>

Go to the source code of this file.

Namespaces

namespace  mv
 
namespace  mv::math
 

Enumerations

enum class  mv::math::GpuLayout { mv::math::Float3Packed12 , mv::math::Float3Array16 }
 

Functions

template<GpuLayout Layout, typename T >
requires IsGpuLayoutCompatible<T, Layout>
std::span< const std::byte > mv::math::AsGpuBytes (std::span< const T > values) noexcept
 

Variables

template<typename T , GpuLayout Layout>
constexpr bool mv::math::IsGpuLayoutCompatible = false