Adobe的汇编GPU语言是AGAL,相对的高级语言是PixelBender 3D,学习AGAL有助于更好的理解GPU的工作模式。 以下是Adobe给出的指令集: AGAL的基本语法: <opcode> <destination>, <source 1>, <source 2 or sampler> Registers: 所有的Register都是128位的。可以看成4个Components,每个Component都可以用<register>.<x|y|z|w> 或者<register>.<r|g|b|a>来表示。自己根据实际语言区分坐标和颜色。 6种类型register 1. Attribute registers These registers reference the Vertex Attribute data of the VertexBuffer that is the input of the Vertex Shader. Therefore, they are only available in Vertex Shaders. This is the main data stream that the Vertex… Continue reading AGAL基本知识(What is AGAL)