MCPcopy Create free account
hub / github.com/arrayfire/forge / dtype2gl

Function dtype2gl

src/backend/opengl/common.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33} Shaders;
34
35GLenum dtype2gl(const forge::dtype pValue)
36{
37 switch(pValue) {
38 case s8: return GL_BYTE;
39 case u8: return GL_UNSIGNED_BYTE;
40 case s32: return GL_INT;
41 case u32: return GL_UNSIGNED_INT;
42 case s16: return GL_SHORT;
43 case u16: return GL_UNSIGNED_SHORT;
44 default: return GL_FLOAT;
45 }
46}
47
48GLenum ctype2gl(const ChannelFormat pMode)
49{

Callers 5

image_implMethod · 0.85
plot_implMethod · 0.85
surface_implMethod · 0.85
histogram_implMethod · 0.85
vector_field_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected