29 #include <EASTL/array.h>
66 template <
typename T,
size_t N>
68 constexpr
size_t maxSize()
const {
return N; }
70 static_assert(
sizeof(*
this) == (
sizeof(
unsigned) +
sizeof(uint32_t) +
sizeof(T) * N),
71 "Spurious padding in fixed fragment");
73 typedef T FragmentBaseType;
74 size_t getActualFragmentSize()
const {
return (
sizeof(T) * count) /
sizeof(uint32_t); }
94 template <
typename P,
typename T,
size_t N>
96 constexpr
size_t maxSize()
const {
return N; }
98 static_assert(
sizeof(*
this) == (
sizeof(
unsigned) +
sizeof(uint32_t) +
sizeof(P) +
sizeof(T) * N),
99 "Spurious padding in fixed fragment");
101 typedef T FragmentBaseType;
102 size_t getActualFragmentSize()
const {
return (
sizeof(P) +
sizeof(T) * count) /
sizeof(uint32_t); }
A maximum fixed sized fragment of similar primitives.
Definition: fragments.hh:95
A maximum fixed sized fragment of similar primitives.
Definition: fragments.hh:67