コード例 #1
0
        public static Vk.PresentModeKhr SelectSwapPresentMode(Vk.PresentModeKhr[] presentModes)
        {
            Vk.PresentModeKhr fallback = Vk.PresentModeKhr.Fifo;

            foreach (Vk.PresentModeKhr presentMode in presentModes)
            {
                if (presentMode == Vk.PresentModeKhr.Mailbox)
                {
                    return(presentMode);
                }
                else if (presentMode == Vk.PresentModeKhr.Immediate)
                {
                    fallback = presentMode;
                }
            }

            return(fallback);
        }
コード例 #2
0
 public void SetPresentMode(Vk.PresentModeKhr presentMode)
 {
     this.presentMode = presentMode;
 }