@@ -1286,6 +1286,17 @@ interface GPURenderPipelineDescriptor
12861286}
12871287
12881288interface 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+ */
12891300 featureLevel ?: string ;
12901301 /**
12911302 * Optionally provides a hint indicating what class of adapter should be selected from
@@ -2413,6 +2424,13 @@ interface GPUDevice
24132424 * (which are exactly the ones with which it was created).
24142425 */
24152426 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 ;
24162434 /**
24172435 * The primary {@link GPUQueue} for this device.
24182436 */
@@ -2421,6 +2439,9 @@ interface GPUDevice
24212439 * Destroys the device, preventing further operations on it.
24222440 * Outstanding asynchronous operations will fail.
24232441 * 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.
24242445 */
24252446 destroy ( ) : undefined ;
24262447 /**
0 commit comments