From: Brian P. <bri...@tu...> - 2004-02-23 15:44:41
|
Chris Ison wrote: >>Each time texutil_tmp.h is included by texutil.c, eight new functions >>are generated, four for texsubimage2d and four for texsubimage3d. >>Those functions are listed in the arrays seen at lines 488 and 500 of >>texutil_tmp.h > > > um, apart from partial code duplications, is there any reason not to break > these functions out into all the different types so each conversion type is > done as fast as possible. Looking at it atm, (using my unrelated exprience > in audio sample format convertion) these could be dramatically spead up by > doing doing up functions that deal exclusively with a particular conversion. That's what the code does now. > This would also make it much easier later on to add further conversion types > and methods. Maybe I don't understand what you're saying. -Brian |