コード例 #1
0
ファイル: Device.cs プロジェクト: jpbruyere/vke.net
 public Device(PhysicalDevice _phy)
 {
     phy = _phy;
 }
コード例 #2
0
ファイル: VkWindow.cs プロジェクト: jpbruyere/vke.net
 /// <summary>
 /// Override this method to select another device than the first one with a swapchain support.
 /// </summary>
 protected virtual void selectPhysicalDevice()
 {
     phy = instance.GetAvailablePhysicalDevice().FirstOrDefault(p => p.HasSwapChainSupport);
 }