Esempio n. 1
0
 /// <summary>
 /// Gets gpu data for compute shader that updates page table
 /// </summary>
 /// <returns></returns>
 public PageGpu[] GetGpuPageData()
 {
     return(cache.GetValues()
            .OrderByDescending(pair0 => pair0.VA.MipLevel)
            .Where(pair1 => pair1.Tile != null)
            .Select(pair2 => new PageGpu(
                        pair2.VA.PageX,
                        pair2.VA.PageY,
                        pair2.X,
                        pair2.Y,
                        pair2.VA.MipLevel))
            .ToArray());
 }