diff --git a/dawn.json b/dawn.json index 6ee48d8bd8..8e584d1fd5 100644 --- a/dawn.json +++ b/dawn.json @@ -873,6 +873,8 @@ "category": "structure", "extensible": false, "members": [ + {"name": "device ID", "type": "uint32_t"}, + {"name": "vendor ID", "type": "uint32_t"}, {"name": "texture compression BC", "type": "bool", "default": "false"}, {"name": "texture compression ETC2", "type": "bool", "default": "false"}, {"name": "texture compression ASTC", "type": "bool", "default": "false"}, diff --git a/src/dawn_native/Adapter.cpp b/src/dawn_native/Adapter.cpp index 87f873b8fd..87b5f9a1fb 100644 --- a/src/dawn_native/Adapter.cpp +++ b/src/dawn_native/Adapter.cpp @@ -65,6 +65,8 @@ namespace dawn_native { WGPUDeviceProperties AdapterBase::GetAdapterProperties() const { WGPUDeviceProperties adapterProperties = {}; + adapterProperties.deviceID = mPCIInfo.deviceId; + adapterProperties.vendorID = mPCIInfo.vendorId; mSupportedExtensions.InitializeDeviceProperties(&adapterProperties); // This is OK for now because there are no limit extension structs.