コード例 #1
0
ファイル: Program.cs プロジェクト: CloneDeath/Illustrate
 private static Device GetDevice(PhysicalDevice physicalDevice, QueueFamilyPropertiesExt queueFamily)
 {
     return(physicalDevice.CreateDevice(new DeviceCreateInfo
     {
         QueueCreateInfos = new[] {
             new DeviceQueueCreateInfo {
                 QueueFamilyIndex = queueFamily.QueueIndex,
                 QueuePriorities = new[] {
                     1f
                 }
             },
         },
         EnabledExtensionNames = new[] {
             Extension.KhrSwapchain
         }
     }));
 }
コード例 #2
0
 public MyQueueFamilyProperties(QueueFamilyPropertiesExt queueFamilyPropertiesExt)
 {
     _queueFamilyPropertiesExt = queueFamilyPropertiesExt;
 }