<languageVersion : 1.0;> kernel name < kernel metadata pairs > { kernel members }
原文: Every kernel must begin with the languageVersion statement, which identifies the version of the Pixel Bender kernel language in which this kernel is written, followed by the kernel definition.
Using Pixel Bender with Flash Player 將Piex Bender使用在Flash Player上需注意:
原文:
The preprocessor symbol AIF_FLASH_TARGET is defined to be 1.
Flash Player always uses 1x1 square pixels. The function pixelSize() always returns (1.0, 1.0), and pixelAspectRatio() always returns 1.0.
The selection operator (?:) can be used only to select between two constants or variables.
Pixel Bender images have 32 bits per channel, but graphics in Flash Player 10 have only 8 bits per channel. When a kernel is run in Flash Player, the input image data is converted to 32 bits per channel and then converted back to 8 bits per channel when kernel execution is complete.
The only available flow-control statements are if and else.