Пример #1
0
        /// <summary>
        /// Creates a new instance of the GPU General Purpose FIFO command processor.
        /// </summary>
        /// <param name="context">GPU context</param>
        /// <param name="channel">Channel that the GPFIFO processor belongs to</param>
        public GPFifoProcessor(GpuContext context, GpuChannel channel)
        {
            _context = context;
            _channel = channel;

            _fifoClass    = new GPFifoClass(context, this);
            _subChannels  = new GpuState[8];
            _subChannels2 = new IDeviceState[8]
            {
                null,
                new ComputeClass(context, channel),
                new InlineToMemoryClass(context, channel),
                new TwodClass(channel),
                new DmaClass(context, channel),
                null,
                null,
                null
            };

            for (int index = 0; index < _subChannels.Length; index++)
            {
                _subChannels[index] = new GpuState(channel, _subChannels2[index]);

                _context.Methods.RegisterCallbacks(_subChannels[index]);
            }
        }
Пример #2
0
        /// <summary>
        /// Creates a new instance of the GPU General Purpose FIFO command processor.
        /// </summary>
        /// <param name="context">GPU context</param>
        /// <param name="channel">Channel that the GPFIFO processor belongs to</param>
        public GPFifoProcessor(GpuContext context, GpuChannel channel)
        {
            _channel = channel;

            _fifoClass    = new GPFifoClass(context, this);
            _3dClass      = new ThreedClass(context, channel, _fifoClass);
            _computeClass = new ComputeClass(context, channel, _3dClass);
            _i2mClass     = new InlineToMemoryClass(context, channel);
            _2dClass      = new TwodClass(channel);
            _dmaClass     = new DmaClass(context, channel, _3dClass);
        }
Пример #3
0
        /// <summary>
        /// Creates a new instance of the GPU General Purpose FIFO command processor.
        /// </summary>
        /// <param name="context">GPU context</param>
        public GPFifoProcessor(GpuContext context)
        {
            _context = context;

            _fifoClass   = new GPFifoClass(context, this);
            _subChannels = new GpuState[8];

            for (int index = 0; index < _subChannels.Length; index++)
            {
                _subChannels[index] = new GpuState();

                _context.Methods.RegisterCallbacks(_subChannels[index]);
            }
        }