Go to the documentation of this file.
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;
53 return GL_ELEMENT_ARRAY_BUFFER;
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
Tag used to identify types that store integer numbers.
Definition: TypeTraits.h:36
Groups connected points that have the same field value.
Definition: Atomic.h:19
The TypeTraits class provides helpful compile-time information about the basic types used in VTKm (an...
Definition: TypeTraits.h:61
#define VTKM_CONT
Definition: ExportMacros.h:57
signed long long Int64
Base type to use for 64-bit signed integer numbers.
Definition: Types.h:204
Tag used to identify 0 dimensional types (scalars).
Definition: TypeTraits.h:44
uint32_t UInt32
Base type to use for 32-bit unsigned integer numbers.
Definition: Types.h:185
unsigned long long UInt64
Base type to use for 64-bit signed integer numbers.
Definition: Types.h:207
int32_t Int32
Base type to use for 32-bit signed integer numbers.
Definition: Types.h:181