[dawn][emscripten] Remove AdapterProperties functions.
- The AdapterProperties function and entry points have been
deprecated so remove them from the Emscripten implementation.
- Note that not removing them results in build failures as the
struct is no longer declared in dawn.json.
Change-Id: I5ea6a43da58abd01453f58ddd15c5b3b9ee5994a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/207134
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Loko Kung <lokokung@google.com>
diff --git a/third_party/emdawnwebgpu/library_webgpu.js b/third_party/emdawnwebgpu/library_webgpu.js
index b467d15..b834ec9 100644
--- a/third_party/emdawnwebgpu/library_webgpu.js
+++ b/third_party/emdawnwebgpu/library_webgpu.js
@@ -529,10 +529,6 @@
// Standalone (non-method) functions
// --------------------------------------------------------------------------
- wgpuAdapterPropertiesFreeMembers: (value) => {
- // wgpuAdapterGetProperties doesn't currently allocate anything.
- },
-
wgpuGetInstanceFeatures: (featuresPtr) => {
abort('TODO: wgpuGetInstanceFeatures unimplemented');
return 0;
@@ -586,22 +582,6 @@
return 1;
},
- wgpuAdapterGetProperties__deps: ['$warnOnce'],
- wgpuAdapterGetProperties: (adapterPtr, properties) => {
- warnOnce('wgpuAdapterGetProperties is deprecated, use wgpuAdapterGetInfo instead');
-
- {{{ gpu.makeCheckDescriptor('properties') }}}
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.vendorID, '0', 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.vendorName, '0', 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.architecture, '0', 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.deviceID, '0', 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.name, '0', 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.driverDescription, '0', 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.adapterType, gpu.AdapterType.Unknown, 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.backendType, gpu.BackendType.WebGPU, 'i32') }}};
- {{{ makeSetValue('properties', C_STRUCTS.WGPUAdapterProperties.compatibilityMode, '0', 'i32') }}};
- },
-
wgpuAdapterHasFeature: (adapterPtr, featureEnumValue) => {
var adapter = WebGPU._tableGet(adapterPtr);
return adapter.features.has(WebGPU.FeatureName[featureEnumValue]);