diff --git a/spec/index.bs b/spec/index.bs index 32286d95a6..44b3c65f0f 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1540,7 +1540,7 @@ including the absence of those values. interface GPUAdapterInfo { readonly attribute DOMString vendor; readonly attribute DOMString architecture; - readonly attribute long deviceId; + readonly attribute DOMString device; readonly attribute DOMString description; }; @@ -1557,9 +1557,9 @@ interface GPUAdapterInfo { The name of the family or class of GPUs the [=adapter=] belongs to, if avaliable. Empty string otherwise. - : deviceId + : device :: - A vendor-specific ID for the [=adapter=], if available. `0` otherwise. + A vendor-specific identifier for the [=adapter=], if available. Empty string otherwise. Note: This is a value that represents the type of adapter. For example, it may be a [PCI device ID](https://pcisig.com/). It does not uniquely identify a given piece of @@ -1601,14 +1601,15 @@ interface GPUAdapterInfo { 1. Set |adapterInfo|.{{GPUAdapterInfo/architecture}} to the empty string or a reasonable approximation of the architecture as a [=normalized identifier string=]. - 1. If |unmaskedValues| [=set/contains=] `"deviceId"` and the deviceId is known: - 1. Set |adapterInfo|.{{GPUAdapterInfo/deviceId}} to a vendor-specific numeric ID for - |adapter|. + 1. If |unmaskedValues| [=set/contains=] `"device"` and the device is known: + 1. Set |adapterInfo|.{{GPUAdapterInfo/device}} to a to a [=normalized identifier string=] + reprenting a vendor-specific indetifier for |adapter|. Otherwise: - 1. Set |adapterInfo|.{{GPUAdapterInfo/deviceId}} to `0` or a reasonable - approximation of the vendor-specific numeric ID for |adapter|. + 1. Set |adapterInfo|.{{GPUAdapterInfo/device}} to to the empty string or a + reasonable approximation of a vendor-specific indetifier as a [=normalized identifier + string=]. 1. If |unmaskedValues| [=set/contains=] `"description"` and a description is known: 1. Set |adapterInfo|.{{GPUAdapterInfo/description}} to a description of the |adapter| as @@ -1636,6 +1637,7 @@ interface GPUAdapterInfo { Examples of valid normalized identifier strings include: - `gpu` - `3d` + - `0x3b2f` - `next-gen` - `series-x20-ultra`