示例#1
0
        //============================================================
        public override void Setup()
        {
            base.Setup();
            FVector <InputElement> elements = new FVector <InputElement>();

            elements.Push(new InputElement("POSITION", 0, Format.R32G32B32A32_Float, 0, 0));
            elements.Push(new InputElement("COORD", 0, Format.R32G32_Float, 16, 0));
            _nativeInputLayout = new InputLayout(_device.NativeAdapter, _nativePass.Description.Signature, elements.ToArray());
        }