public static String stringFor ( int n ) { if ( n == 0 ) { return "CU_GRAPHICS_REGISTER_FLAGS_NONE" ; } String result = "" ; if ( ( n & CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY ) != 0 ) result += "CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY " ; if ( ( n & CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD ) != 0 ) result += "CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD " ; if ( ( n & CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST ) != 0 ) result += "CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST " ; if ( ( n & CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER ) != 0 ) result += "CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER " ; return result ; }
Returns the String identifying the given CUgraphicsRegisterFlags