diff --git a/dawn.json b/dawn.json index 4954b29d60..3445fe23b1 100644 --- a/dawn.json +++ b/dawn.json @@ -1108,6 +1108,7 @@ "members": [ {"name": "device ID", "type": "uint32_t"}, {"name": "vendor ID", "type": "uint32_t"}, + {"name": "adapter type", "type": "adapter type"}, {"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 f57e44bc2f..e5b5f2b193 100644 --- a/src/dawn_native/Adapter.cpp +++ b/src/dawn_native/Adapter.cpp @@ -111,6 +111,7 @@ namespace dawn_native { WGPUDeviceProperties adapterProperties = {}; adapterProperties.deviceID = mPCIInfo.deviceId; adapterProperties.vendorID = mPCIInfo.vendorId; + adapterProperties.adapterType = static_cast(mAdapterType); mSupportedFeatures.InitializeDeviceProperties(&adapterProperties); // This is OK for now because there are no limit feature structs.