Wildmeshing Toolkit
Loading...
Searching...
No Matches
convert.hxx
Go to the documentation of this file.
1#pragma once
2
3#include <cassert>
4#include "convert.hpp"
7
8inline int8_t convert(PrimitiveType from, PrimitiveType to, int8_t source)
9{
10 return convert(int8_t(from), int8_t(to), source);
11}
12inline int8_t convert(int8_t from, int8_t to, int8_t source)
13{
14 const int8_t v = remap_table[from - 1][to - 1][source];
15 assert(v != -1);
16 return v;
17}
18} // namespace wmtk::autogen::subgroup
int8_t convert(PrimitiveType from, PrimitiveType to, int8_t source)
Definition convert.hxx:8