package com.xyzshell.andinfo.libs.gpu.models

data class VkPhysicalDevice(
    val apiVersion: VkVersion,
    val driverVersion: Long,
    val vendorId: Long,
    val registeredVendorId: VkVendorId?,
    val deviceId: Long,
    val deviceType: VkPhysicalDeviceType,
    val deviceName: String,
)

data class VkVersion(
    val version: Int,
) {
    val major: Int = (version shr 22) and 0x7F
    val minor: Int = (version shr 12) and 0x3FF
    val patch: Int = version and 0xFFF
    val variant: Int = (version shr 29) and 0x7
}
