10 #ifndef vtk_m_interop_internal_BufferTypePicker_h
11 #define vtk_m_interop_internal_BufferTypePicker_h
27 template <
typename NumericTag,
typename DimensionalityTag>
28 static inline VTKM_CONT GLenum BufferTypePickerImpl(NumericTag, DimensionalityTag)
30 return GL_ARRAY_BUFFER;
36 return GL_ELEMENT_ARRAY_BUFFER;
43 return GL_ELEMENT_ARRAY_BUFFER;
48 return GL_ELEMENT_ARRAY_BUFFER;
51 static inline VTKM_CONT GLenum BufferTypePicker(vtkm::Int64)
53 return GL_ELEMENT_ARRAY_BUFFER;
56 static inline VTKM_CONT GLenum BufferTypePicker(vtkm::UInt64)
58 return GL_ELEMENT_ARRAY_BUFFER;
66 static inline VTKM_CONT GLenum BufferTypePicker(T)
69 return detail::BufferTypePickerImpl(
typename Traits::NumericTag(),
70 typename Traits::DimensionalityTag());
76 #endif //vtk_m_interop_internal_BufferTypePicker_h