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); }
public void SetPresentMode(Vk.PresentModeKhr presentMode) { this.presentMode = presentMode; }