コード例 #1
0
 /// <summary>
 /// Read inside the command buffer.
 /// </summary>
 /// <param name="context">The GPU context</param>
 /// <param name="index">The index inside the command buffer</param>
 /// <returns>The value read</returns>
 public int ReadAt(GpuContext context, int index)
 {
     return(Words[index]);
 }
コード例 #2
0
        /// <summary>
        /// Creates a new instance of the GPU presentation window.
        /// </summary>
        /// <param name="context">GPU emulation context</param>
        public Window(GpuContext context)
        {
            _context = context;

            _frameQueue = new ConcurrentQueue <PresentationTexture>();
        }