JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::Vec3BufferView< T > Struct Template Reference

#include <JPLSpatial/Math/Vec3Buffer.h>

Public Member Functions

JPL_INLINE std::size_t size () const noexcept
 
template<CVec3 Vec3Type>
JPL_INLINE void Unpack (std::span< Vec3Type > outVec3s) const
 
JPL_INLINE void CopyTo (Vec3BufferView &other) const
 

Public Attributes

T * X
 
T * Y
 
T * Z
 
std::size_t Count = 0
 

Detailed Description

template<Impl::CSIMDorFloat T>
struct JPL::Vec3BufferView< T >

View into a Vec3-like SoA buffer, holding separate arrays of Vec3 components X, Y, Z as float or simd

Member Function Documentation

◆ CopyTo()

template<Impl::CSIMDorFloat T>
JPL_INLINE void JPL::Vec3BufferView< T >::CopyTo ( Vec3BufferView< T > &  other) const
inline

◆ size()

template<Impl::CSIMDorFloat T>
JPL_INLINE std::size_t JPL::Vec3BufferView< T >::size ( ) const
inlinenoexcept

◆ Unpack()

template<Impl::CSIMDorFloat T>
template<CVec3 Vec3Type>
JPL_INLINE void JPL::Vec3BufferView< T >::Unpack ( std::span< Vec3Type >  outVec3s) const
inline

Member Data Documentation

◆ Count

template<Impl::CSIMDorFloat T>
std::size_t JPL::Vec3BufferView< T >::Count = 0

◆ X

template<Impl::CSIMDorFloat T>
T* JPL::Vec3BufferView< T >::X

◆ Y

template<Impl::CSIMDorFloat T>
T* JPL::Vec3BufferView< T >::Y

◆ Z

template<Impl::CSIMDorFloat T>
T* JPL::Vec3BufferView< T >::Z

The documentation for this struct was generated from the following file: