public static String stringFor ( int n ) { if ( n == 0 ) { return "CU_GL_MAP_RESOURCE_FLAGS_NONE" ; } String result = "" ; if ( ( n & CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY ) != 0 ) result += "CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY " ; if ( ( n & CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD ) != 0 ) result += "CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD " ; return result ; }
Returns the String identifying the given CUGLmap_flags