ncannasse / hxsl

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

Constrained mode support. #9

Closed profelis closed 11 years ago

profelis commented 11 years ago

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display3D/Context3DProfile.html#BASELINE_CONSTRAINED

profelis commented 11 years ago
ncannasse commented 11 years ago

I'm not sure how exactly we should support these modes, especially in hxsl v2 where the final shader is compiled at runtime depending on the parameters, it's hard to predict the number of operations and AGAL will also display a runtime error if one of the limits is reached, so I'm not sure there's a big benefit in doing it at compiletime (maybe if no parameters, but then there's different profiles now...)