package alternativa.gfx.agal{
    import __AS3__.vec.Vector;
    import __AS3__.vec.*;

    public class VertexShader extends Shader {

        public static const va0:CommonRegister = new CommonRegister(0, 0);
        public static const va1:CommonRegister = new CommonRegister(1, 0);
        public static const va2:CommonRegister = new CommonRegister(2, 0);
        public static const va3:CommonRegister = new CommonRegister(3, 0);
        public static const va4:CommonRegister = new CommonRegister(4, 0);
        public static const va5:CommonRegister = new CommonRegister(5, 0);
        public static const va6:CommonRegister = new CommonRegister(6, 0);
        public static const va7:CommonRegister = new CommonRegister(7, 0);
        public static const vt0:CommonRegister = new CommonRegister(0, 2);
        public static const vt1:CommonRegister = new CommonRegister(1, 2);
        public static const vt2:CommonRegister = new CommonRegister(2, 2);
        public static const vt3:CommonRegister = new CommonRegister(3, 2);
        public static const vt4:CommonRegister = new CommonRegister(4, 2);
        public static const vt5:CommonRegister = new CommonRegister(5, 2);
        public static const vt6:CommonRegister = new CommonRegister(6, 2);
        public static const vt7:CommonRegister = new CommonRegister(7, 2);
        public static const vc:Vector.<CommonRegister> = getConsts();
        public static const op:CommonRegister = new CommonRegister(0, 3);

        public function VertexShader(){
            data.writeByte(0);
        }

        private static function getConsts():Vector.<CommonRegister>{
            var _local_1:Vector.<CommonRegister> = new Vector.<CommonRegister>();
            var _local_2:int;
            while (_local_2 < 127)
            {
                _local_1[_local_2] = new CommonRegister(_local_2, 1);
                _local_2++;
            };
            return (_local_1);
        }


    }
}//package alternativa.gfx.agal