mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Upstream denoland/deno#15853 (#3038)
Co-authored-by: Vicary A <vicary@yahoo.com>
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
Error,
|
||||
MathMax,
|
||||
ObjectDefineProperty,
|
||||
ObjectFreeze,
|
||||
ObjectPrototypeIsPrototypeOf,
|
||||
Promise,
|
||||
PromiseAll,
|
||||
@@ -346,8 +345,8 @@
|
||||
const inner = new InnerGPUDevice({
|
||||
rid,
|
||||
adapter: this,
|
||||
features: ObjectFreeze(features),
|
||||
limits: ObjectFreeze(limits),
|
||||
features: createGPUSupportedFeatures(features),
|
||||
limits: createGPUSupportedFeatures(limits),
|
||||
});
|
||||
return createGPUDevice(
|
||||
descriptor.label,
|
||||
@@ -746,8 +745,8 @@
|
||||
* @typedef InnerGPUDeviceOptions
|
||||
* @property {GPUAdapter} adapter
|
||||
* @property {number | undefined} rid
|
||||
* @property {GPUFeatureName[]} features
|
||||
* @property {object} limits
|
||||
* @property {GPUSupportedFeatures} features
|
||||
* @property {GPUSupportedLimits} limits
|
||||
*/
|
||||
|
||||
class InnerGPUDevice {
|
||||
@@ -755,9 +754,9 @@
|
||||
adapter;
|
||||
/** @type {number | undefined} */
|
||||
rid;
|
||||
/** @type {GPUFeatureName[]} */
|
||||
/** @type {GPUSupportedFeatures} */
|
||||
features;
|
||||
/** @type {object} */
|
||||
/** @type {GPUSupportedLimits} */
|
||||
limits;
|
||||
/** @type {WeakRef<any>[]} */
|
||||
resources;
|
||||
|
||||
Reference in New Issue
Block a user