コード例 #1
0
 private DeviceType GetDeviceTypeFromVulkanDeviceType(PhysicalDeviceType type)
 {
     return(type switch
     {
         PhysicalDeviceType.Cpu => DeviceType.CPU,
         PhysicalDeviceType.DiscreteGpu => DeviceType.DISCRETE,
         PhysicalDeviceType.IntegratedGpu => DeviceType.INTEGRATED,
         PhysicalDeviceType.VirtualGpu => DeviceType.VIRTUAL,
         _ => DeviceType.UNKNOWN
     });
コード例 #2
0
 public PhysicalDeviceProperties
 (
     uint apiVersion               = default,
     uint driverVersion            = default,
     uint vendorID                 = default,
     uint deviceID                 = default,
     PhysicalDeviceType deviceType = default,
     PhysicalDeviceLimits limits   = default,
     PhysicalDeviceSparseProperties sparseProperties = default
 )
 {
     ApiVersion       = apiVersion;
     DriverVersion    = driverVersion;
     VendorID         = vendorID;
     DeviceID         = deviceID;
     DeviceType       = deviceType;
     Limits           = limits;
     SparseProperties = sparseProperties;
 }