@@ -1286,6 +1286,17 @@ interface GPURenderPipelineDescriptor
1286
1286
}
1287
1287
1288
1288
interface GPURequestAdapterOptions {
1289
+ /**
1290
+ * "Feature level" for the adapter request.
1291
+ * The allowed feature level string values are:
1292
+ * - `"core"`
1293
+ * No effect.
1294
+ * - `"compatibility"`
1295
+ * No effect.
1296
+ * Note:
1297
+ * This value is reserved for future use as a way to opt into additional validation restrictions.
1298
+ * Applications should not use this value at this time.
1299
+ */
1289
1300
featureLevel ?: string ;
1290
1301
/**
1291
1302
* Optionally provides a hint indicating what class of adapter should be selected from
@@ -2413,6 +2424,13 @@ interface GPUDevice
2413
2424
* (which are exactly the ones with which it was created).
2414
2425
*/
2415
2426
readonly limits : GPUSupportedLimits ;
2427
+ /**
2428
+ * Information about the physical adapter which created the device
2429
+ * that this GPUDevice refers to.
2430
+ * For a given GPUDevice, the GPUAdapterInfo values exposed are constant
2431
+ * over time.
2432
+ */
2433
+ readonly adapterInfo : GPUAdapterInfo ;
2416
2434
/**
2417
2435
* The primary {@link GPUQueue} for this device.
2418
2436
*/
@@ -2421,6 +2439,9 @@ interface GPUDevice
2421
2439
* Destroys the device, preventing further operations on it.
2422
2440
* Outstanding asynchronous operations will fail.
2423
2441
* Note: It is valid to destroy a device multiple times.
2442
+ * Note: Since no further operations can be enqueued on this device, implementations can abort
2443
+ * outstanding asynchronous operations immediately and free resource allocations, including
2444
+ * mapped memory that was just unmapped.
2424
2445
*/
2425
2446
destroy ( ) : undefined ;
2426
2447
/**
0 commit comments