The DeviceInfo structure has many OpenGL and GLSL fields that will not be used for other non-OpenGL graphics API's.
It makes sense to split these into two separate structures GLInfo and GLSLInfo and then have:
type DeviceInfo struct {
// GL is a pointer to information about the OpenGL implementation, if the
// device is a OpenGL device. Otherwise it is nil.
GL *GLInfo
// GLSL is a pointer to information about the GLSL implementation, if the
// device is a OpenGL device. Otherwise it is nil.
GLSL *GLSLInfo
Issue by slimsag Tuesday Dec 09, 2014 at 18:09 GMT Originally opened as https://github.com/azul3d/gfx/issues/62
The
DeviceInfo
structure has many OpenGL and GLSL fields that will not be used for other non-OpenGL graphics API's.It makes sense to split these into two separate structures
GLInfo
andGLSLInfo
and then have: