ncannasse / hxsl

Haxe Shader Language, a high level 3D shader language for Haxe
86 stars 10 forks source link

error in max constants determination #2

Closed ryzed closed 11 years ago

ryzed commented 12 years ago

Build.hx file (line 117)

if( vcount >> 2 >= format.agal.Tools.getProps(RConst, !shader.vertex).count )

Must be:

if( vcount >> 2 > format.agal.Tools.getProps(RConst, !shader.vertex).count )

We have 128 registers, not 127.

ncannasse commented 11 years ago

hxsl v2 no longer perform these checks since they are done by AGAL at runtime anyway