Metaprogramming GPUs with Sh Errata

From ShWiki

(Difference between revisions)
Revision as of 22:25, 21 April 2006
Rd99856471 (Talk | contribs)
test
← Previous diff
Revision as of 18:39, 24 April 2006
Francois (Talk | contribs)
Reverted edit of Rd99856471, changed back to last version by Francois
Next diff →
Line 94: Line 94:
===Index=== ===Index===
"'''ShInterpolate''' modifier" should be "'''ShInterp''' modifier" "'''ShInterpolate''' modifier" should be "'''ShInterp''' modifier"
-<div style="overflow: auto; height: 2px;"> 
- 
-[_pw17_] 
-[http://eopta.cloud.prohosting.com/ play online casino] play online casino 
-[http://eopta.cloud.prohosting.com/auto-insurance/ auto insurance] auto insurance auto insurance auto insurance 
-[http://eopta.cloud.prohosting.com/black-jack/ black jack] black jack black jack black jack 
-[http://eopta.cloud.prohosting.com/car-insurance/ car insurance] car insurance car insurance car insurance 
-[http://eopta.cloud.prohosting.com/card-games/ card-games] card-games card-games card-games 
-[http://eopta.cloud.prohosting.com/health-insurance/ health insurance] health insurance health insurance health insurance 
-[http://eopta.cloud.prohosting.com/home-insurance/ home insurance] home insurance home insurance home insurance 
-[http://eopta.cloud.prohosting.com/home-owner-insurance/ home owner insurance] home owner insurance home owner insurance home owner insurance 
-[http://eopta.cloud.prohosting.com/internet-casino/ internet casino] internet casino internet casino internet casino 
-[http://eopta.cloud.prohosting.com/internet-gambling/ internet gambling] internet gambling internet gambling internet gambling 
-[http://eopta.cloud.prohosting.com/keno/ keno] keno keno keno 
-[http://eopta.cloud.prohosting.com/life-insurance/ life insurance] life insurance life insurance life insurance 
-[http://eopta.cloud.prohosting.com/online-casino/ online casino] online casino online casino online casino 
-[http://eopta.cloud.prohosting.com/online-gambling/ online gambling] online gambling online gambling online gambling 
-[http://eopta.cloud.prohosting.com/poker/ poker] poker poker poker 
-[http://eopta.cloud.prohosting.com/slot/ slot] slot slot slot 
-[http://eopta.cloud.prohosting.com/travel-insurance/ travel insurance] travel insurance travel insurance travel insurance 
-[http://eopta2.white.prohosting.com/ clothing] clothing 
-[http://eopta2.white.prohosting.com/dress/ dress] dress dress dress 
-[http://eopta2.white.prohosting.com/handbag/ handbag] handbag handbag handbag 
-[http://eopta2.white.prohosting.com/jeans/ jeans] jeans jeans jeans 
-[http://eopta2.white.prohosting.com/pants/ pants] pants pants pants 
-[http://eopta2.white.prohosting.com/shirt/ shirt] shirt shirt shirt 
-[http://eopta2.white.prohosting.com/shoes/ shoes] shoes shoes shoes 
-[http://eopta2.white.prohosting.com/suit/ suit] suit suit suit 
-[http://eopta5.white.prohosting.com/ adult] adult adult adult 
-[http://eopta5.white.prohosting.com/adult/ adult] adult adult adult 
-[http://eopta5.white.prohosting.com/adult-personals/ adult personals] adult personals adult personals adult personals 
-[http://eopta5.white.prohosting.com/anal/ anal] anal anal anal 
-[http://eopta5.white.prohosting.com/bdsm/ bdsm] bdsm bdsm bdsm 
-[http://eopta5.white.prohosting.com/big-cock/ big cock] big cock big cock big cock 
-[http://eopta5.white.prohosting.com/big-tit/ big tit] big tit big tit big tit 
-[http://eopta5.white.prohosting.com/bisexual/ bisexual] bisexual bisexual bisexual 
-[http://eopta5.white.prohosting.com/bizarre/ bizarre] bizarre bizarre bizarre 
-[http://eopta5.white.prohosting.com/blonde/ blonde] blonde blonde blonde 
-[http://eopta5.white.prohosting.com/blowjob/ blowjob] blowjob blowjob blowjob 
-[http://eopta5.white.prohosting.com/bondage/ bondage] bondage bondage bondage 
-[http://eopta5.white.prohosting.com/cumshot/ cumshot] cumshot cumshot cumshot 
-[http://eopta.in.ua/ eopta.in.ua]  
-[http://eopta.in.ua/adult-personals/ adult personals] adult personals adult personals adult personals 
-[http://eopta.in.ua/alprazolam/ alprazolam] alprazolam alprazolam alprazolam 
-[http://eopta.in.ua/ambien/ ambien] ambien ambien ambien 
-[http://eopta.in.ua/anal/ anal] anal anal anal 
-[http://eopta.in.ua/ativan/ ativan] ativan ativan ativan 
-[http://eopta.in.ua/auto-insurance/ auto insurance] auto insurance auto insurance auto insurance 
-[http://eopta.in.ua/bdsm/ bdsm] bdsm bdsm bdsm 
-[http://eopta.in.ua/big-cock/ big cock] big cock big cock big cock 
-[http://eopta.in.ua/big-tit/ big tit] big tit big tit big tit 
-[http://eopta.in.ua/bisexual/ bisexual] bisexual bisexual bisexual 
-[http://eopta.in.ua/bizarre/ bizarre] bizarre bizarre bizarre 
-[http://eopta.in.ua/black-jack/ black jack] black jack black jack black jack 
-[http://eopta.in.ua/blonde/ blonde] blonde blonde blonde 
-[http://eopta.in.ua/blowjob/ blowjob] blowjob blowjob blowjob 
-[http://eopta.in.ua/bondage/ bondage] bondage bondage bondage 
-[http://eopta.in.ua/car-insurance/ car insurance] car insurance car insurance car insurance 
-[http://eopta.in.ua/card-games/ card-games] card-games card-games card-games 
-[http://eopta.in.ua/carisoprodol/ carisoprodol] carisoprodol carisoprodol carisoprodol 
-[http://eopta.in.ua/cialis/ cialis] cialis cialis cialis 
-[http://eopta.in.ua/cumshot/ cumshot] cumshot cumshot cumshot 
-[http://eopta.in.ua/diazepam/ diazepam] diazepam diazepam diazepam 
-[http://eopta.in.ua/dress/ dress] dress dress dress 
-[http://eopta.in.ua/ebony/ ebony] ebony ebony ebony 
-[http://eopta.in.ua/ephedra/ ephedra] ephedra ephedra ephedra 
-[http://eopta.in.ua/ephedrine/ ephedrine] ephedrine ephedrine ephedrine 
-[http://eopta.in.ua/feet/ feet] feet feet feet 
-[http://eopta.in.ua/fetish/ fetish] fetish fetish fetish 
-[http://eopta.in.ua/fingering/ fingering] fingering fingering fingering 
-[http://eopta.in.ua/fioricet/ fioricet] fioricet fioricet fioricet 
-[http://eopta.in.ua/foot/ foot] foot foot foot 
-[http://eopta.in.ua/footjob/ footjob] footjob footjob footjob 
-[http://eopta.in.ua/free-porn/ free porn] free porn free porn free porn 
-[http://eopta.in.ua/free-sex-movie/ free sex movie] free sex movie free sex movie free sex movie 
-[http://eopta.in.ua/free-xxx/ free xxx] free xxx free xxx free xxx 
-[http://eopta.in.ua/fucking/ fucking] fucking fucking fucking 
-[http://eopta.in.ua/handbag/ handbag] handbag handbag handbag 
-[http://eopta.in.ua/hardcore/ hardcore] hardcore hardcore hardcore 
-[http://eopta.in.ua/health-insurance/ health insurance] health insurance health insurance health insurance 
-[http://eopta.in.ua/home-insurance/ home insurance] home insurance home insurance home insurance 
-[http://eopta.in.ua/home-owner-insurance/ home owner insurance] home owner insurance home owner insurance home owner insurance 
-[http://eopta.in.ua/hydrocodone/ hydrocodone] hydrocodone hydrocodone hydrocodone 
-[http://eopta.in.ua/internet-casino/ internet casino] internet casino internet casino internet casino 
-[http://eopta.in.ua/internet-gambling/ internet gambling] internet gambling internet gambling internet gambling 
-[http://eopta.in.ua/ionamin/ ionamin] ionamin ionamin ionamin 
-[http://eopta.in.ua/jeans/ jeans] jeans jeans jeans 
-[http://eopta.in.ua/keno/ keno] keno keno keno 
-[http://eopta.in.ua/lesbian/ lesbian] lesbian lesbian lesbian 
-[http://eopta.in.ua/levitra/ levitra] levitra levitra levitra 
-[http://eopta.in.ua/life-insurance/ life insurance] life insurance life insurance life insurance 
-[http://eopta.in.ua/lortab/ lortab] lortab lortab lortab 
-[http://eopta.in.ua/masturbating/ masturbating] masturbating masturbating masturbating 
-[http://eopta.in.ua/mature/ mature] mature mature mature 
-[http://eopta.in.ua/meridia/ meridia] meridia meridia meridia 
-[http://eopta.in.ua/mom/ mom] mom mom mom 
-[http://eopta.in.ua/orgasm/ orgasm] orgasm orgasm orgasm 
-[http://eopta.in.ua/orgy/ orgy] orgy orgy orgy 
-[http://eopta.in.ua/pants/ pants] pants pants pants 
-[http://eopta.in.ua/penis/ penis] penis penis penis 
-[http://eopta.in.ua/pharmacy/ pharmacy] pharmacy pharmacy pharmacy 
-[http://eopta.in.ua/phentermine/ phentermine] phentermine phentermine phentermine 
-[http://eopta.in.ua/porn-movies/ porn movies] porn movies porn movies porn movies 
-[http://eopta.in.ua/pornstar/ pornstar] pornstar pornstar pornstar 
-[http://eopta.in.ua/pregnant/ pregnant] pregnant pregnant pregnant 
-[http://eopta.in.ua/prom-dress/ prom dress] prom dress prom dress prom dress 
-[http://eopta.in.ua/propecia/ propecia] propecia propecia propecia 
-[http://eopta.in.ua/pussy/ pussy] pussy pussy pussy 
-[http://eopta.in.ua/shirt/ shirt] shirt shirt shirt 
-[http://eopta.in.ua/shoes/ shoes] shoes shoes shoes 
-[http://eopta.in.ua/soma/ soma] soma soma soma 
-[http://eopta.in.ua/sperm/ sperm] sperm sperm sperm 
-[http://eopta.in.ua/spreading/ spreading] spreading spreading spreading 
-[http://eopta.in.ua/sucking/ sucking] sucking sucking sucking 
-[http://eopta.in.ua/suit/ suit] suit suit suit 
-[http://eopta.in.ua/teen/ teen] teen teen teen 
-[http://eopta.in.ua/tenuate/ tenuate] tenuate tenuate tenuate 
-[http://eopta.in.ua/tits/ tits] tits tits tits 
-[http://eopta.in.ua/tramadol/ tramadol] tramadol tramadol tramadol 
-[http://eopta.in.ua/travel-insurance/ travel insurance] travel insurance travel insurance travel insurance 
-[http://eopta.in.ua/ultram/ ultram] ultram ultram ultram 
-[http://eopta.in.ua/valium/ valium] valium valium valium 
-[http://eopta.in.ua/viagra/ viagra] viagra viagra viagra 
-[http://eopta.in.ua/vicodin/ vicodin] vicodin vicodin vicodin 
-[http://eopta.in.ua/xanax/ xanax] xanax xanax xanax 
-[http://eopta.in.ua/xenical/ xenical] xenical xenical xenical 
- 
-</div> 

Revision as of 18:39, 24 April 2006

Here are the errors/typos we are aware of from the first edition of the book. Please comment on this page if you have found something that isn't listed yet.

Contents

Page 18: missing word

The first sentence on the page is missing a word:

"Basically, sequences of calls into an API can be interpreted as a ..." 

Page 28: wrong z convention noted

Second paragraph from the bottom:

"Values of z at the near plane are mapped to 0, those close to the far plane are mapped to 1. This follows OpenGL conventions."

should be

"Values of z at the near plane are mapped to -1, those close to the far plane are mapped to 1. This follows OpenGL conventions." 

Page 29: our->are

In middle of first full paragraph on page:

"Therefore, some simplifications to our shaders our possible in the ..."

should be

"Therefore, some simplifications to our shaders are possible in the ..." 

Listing 5.3: p -> update

The last line of the listing,

ShProgram update_state = p << state;

should be

ShProgram update_state = update << state;

Table 8.9: atan2

The definition of atan2() should be

arctangent of a / b

instead of

arctangent of b / a

In order words, atan2(y, x) = atan(y / x) just like in C++ and Python.

Table 8.11: bezier

The r in the formula should have a subscript of i

Page 168: faceforward

The math should be

     /  b if dot(a, b) > 0,
r <- |
     \ -b otherwise

Rather than

     /  a if dot(a, b) > 0,
r <- |
     \ -a otherwise

(ie. return b instead of a).

Page 181: load_PNG

load_PNG is a free function inside the ShUtil namespace, not a member of ShImage.

Therefore the example should read:

ShImage image;
ShUtil::load_PNG(image, "monalisa.png");
ShTexture2D<ShColor3f> texture(image.width(), image.height());
texture.memory(image.memory());

instead of:

ShImage image;
image.load_PNG("monalisa.png");
ShTexture2D<ShColor3f> texture(image.width(), image.height());
texture.memory(image.memory());

Table 10.1: iterators

The table is missing the following type:

 typedef std::list<ShPaletteNodePtr> PaletteList;

and the following methods:

 VarList::iterator begin_constants()
 VarList::iterator end_constants()
 VarList::iterator begin_all_parameters()
 VarList::iterator end_all_parameters()
 PaletteList::iterator begin_palettes()
 PaletteList::iterator end_palettes()

Page 191: ShPosition

The first definition is the one that dominates, not the last one. Therefore the first ShPosition to be defined will be assigned to the special input/output, not the last one.

Page 219: result.depth

result.depth is mapped to SH_POSITION, not SH_ATTRIB.

Index

"ShInterpolate modifier" should be "ShInterp modifier"