porting some custom shaders from flash (starling) codebase to openfl (starling). In fact everything goes surprisingly smooth
But there is one thing that seems to be lost in haxe port. In flash i could overwrite āprogram variant nameā in custom FragmentFilter to allow starling to cache program instances
override function get programVariantName():uint
But in haxe this is a property with private getterā¦ so it can not be overridden.
how i can feed starling with proper mask for custom program?
/** Override this method if the effect requires a different program depending on the
* current settings. Ideally, you do this by creating a bit mask encoding all the options.
* This method is called often, so do not allocate any temporary objects when overriding.
*
* @default 0
*/
public var programVariantName(get, never):UInt;
private function get_programVariantName():UInt
{
return 0;
}