MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / GetGLTargetName

Function GetGLTargetName

test_common/gl/helpers.cpp:1980–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978}
1979
1980const char *GetGLTargetName( GLenum tgt )
1981{
1982 if( tgt == GL_TEXTURE_BUFFER ) return "GL_TEXTURE_BUFFER";
1983 if( tgt == GL_TEXTURE_1D ) return "GL_TEXTURE_1D";
1984 if( tgt == GL_TEXTURE_2D ) return "GL_TEXTURE_2D";
1985 if( tgt == GL_TEXTURE_3D ) return "GL_TEXTURE_3D";
1986 if( tgt == GL_TEXTURE_RECTANGLE_EXT ) return "GL_TEXTURE_RECTANGLE_EXT";
1987 if( tgt == GL_TEXTURE_CUBE_MAP_POSITIVE_X ) return "GL_TEXTURE_CUBE_MAP_POSITIVE_X";
1988 if( tgt == GL_TEXTURE_CUBE_MAP_POSITIVE_Y ) return "GL_TEXTURE_CUBE_MAP_POSITIVE_Y";
1989 if( tgt == GL_TEXTURE_CUBE_MAP_POSITIVE_Z ) return "GL_TEXTURE_CUBE_MAP_POSITIVE_Z";
1990 if( tgt == GL_TEXTURE_CUBE_MAP_NEGATIVE_X ) return "GL_TEXTURE_CUBE_MAP_NEGATIVE_X";
1991 if( tgt == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y ) return "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y";
1992 if( tgt == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z ) return "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z";
1993 if( tgt == GL_TEXTURE_2D_MULTISAMPLE ) return "GL_TEXTURE_2D_MULTISAMPLE";
1994 if( tgt == GL_TEXTURE_2D_MULTISAMPLE_ARRAY ) return "GL_TEXTURE_2D_MULTISAMPLE_ARRAY";
1995
1996 static char foo[ 128 ];
1997 sprintf( foo, "0x%04x", (int)tgt);
1998 return foo;
1999}
2000
2001const char *GetGLAttachmentName( GLenum att )
2002{

Callers 15

CreateGLTexture1DArrayFunction · 0.70
CreateGLTextureBufferFunction · 0.70
CreateGLTexture1DFunction · 0.70
CreateGLTexture2DFunction · 0.70
ReadGLTextureFunction · 0.70
test_images_read_commonFunction · 0.50
set_dimensions_by_targetFunction · 0.50
test_image_format_writeFunction · 0.50

Calls

no outgoing calls

Tested by 14

test_images_read_commonFunction · 0.40
set_dimensions_by_targetFunction · 0.40
test_image_format_writeFunction · 0.40
test_images_write_commonFunction · 0.40
test_images_2D_getinfoFunction · 0.40
test_images_cube_getinfoFunction · 0.40
test_images_read_cubeFunction · 0.40
test_images_write_cubeFunction · 0.40