Convenience method to concatenate a target and type variant into the low four bits of a single byte. Used to build the TargetVarTable.
| 107 | // Convenience method to concatenate a target and type variant into the low |
| 108 | // four bits of a single byte. Used to build the TargetVarTable. |
| 109 | static constexpr unsigned char GenTargetVar(Target target, TypeVariant var) noexcept |
| 110 | { |
| 111 | return static_cast<unsigned char>( |
| 112 | (static_cast<vtkTypeUInt64>(target) | static_cast<vtkTypeUInt64>(var)) >> 60); |
| 113 | } |
| 114 | |
| 115 | // Lookup table that maps a VTK cell type (eg. VTK_TRIANGLE) into a target + |
| 116 | // type variant byte. |
no outgoing calls
no test coverage detected