Skip to content

Commit 48d4551

Browse files
committed
Sync generated docs
1 parent 5875d15 commit 48d4551

1 file changed

Lines changed: 34 additions & 15 deletions

File tree

dist/index.d.ts

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ interface GPUBufferBinding {
675675

676676
interface GPUBufferBindingLayout {
677677
/**
678-
* Indicates the type required for buffers bound to this bindings.
678+
* Indicates the type required for buffers bound to this binding.
679679
*/
680680
type?: GPUBufferBindingType;
681681
/**
@@ -1455,16 +1455,35 @@ interface GPURenderPipelineDescriptor
14551455

14561456
interface GPURequestAdapterOptions {
14571457
/**
1458-
* "Feature level" for the adapter request.
1458+
* Requests an adapter that supports at least a particular set of capabilities.
1459+
* This influences the {@link adapter/{@link https://www.w3.org/TR/webgpu/default feature level}} of devices created
1460+
* from this adapter. The capabilities for each level are defined below, and the exact
1461+
* steps are defined in {@link GPU#requestAdapter} and "a new device".
1462+
* If the implementation or system does not support all of the capabilities in the
1463+
* requested feature level, {@link GPU#requestAdapter} will return `null`.
1464+
* Note:
1465+
* Applications should typically make a single {@link GPU#requestAdapter} call with the lowest
1466+
* feature level they support, then inspect the adapter for additional capabilities they can
1467+
* use optionally, and request those in {@link GPUAdapter#requestDevice}.
14591468
* The allowed <dfn dfn for="">feature level string</dfn> values are:
14601469
* <dl dfn-type=dfn dfn-for="feature level string">
14611470
* : <dfn noexport>"core"</dfn>
1462-
* No effect.
1471+
* The following set of capabilities:
1472+
* - The limit/Default limits.
1473+
* - {@link GPUFeatureName} `"core-features-and-limits"`.
1474+
* Note:
1475+
* Adapters with this {@link adapter/{@link https://www.w3.org/TR/webgpu/default feature level}} may
1476+
* conventionally be referred to as "Core-defaulting".
14631477
* : <dfn noexport>"compatibility"</dfn>
1464-
* No effect.
1478+
* The following set of capabilities:
1479+
* - The limit/Compatibility Mode Default limits.
1480+
* - No features. (It excludes the {@link GPUFeatureName} `"core-features-and-limits"` feature.)
1481+
* If the implementation cannot enforce the stricter "Compatibility Mode"
1482+
* validation rules, {@link GPU#requestAdapter} will ignore this request and
1483+
* treat it as a request for feature level string/"core".
14651484
* Note:
1466-
* This value is reserved for future use as a way to opt into additional validation restrictions.
1467-
* Applications should not use this value at this time.
1485+
* Adapters with this {@link adapter/{@link https://www.w3.org/TR/webgpu/default feature level}} may
1486+
* conventionally be referred to as "Compatibility-defaulting".
14681487
*/
14691488
featureLevel?: string;
14701489
/**
@@ -1765,20 +1784,20 @@ interface GPUTextureDescriptor
17651784
* </div>
17661785
* Formats in this list must be texture view format compatible with the texture format.
17671786
* <div algorithm data-timeline=const>
1768-
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> if:
1787+
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> on a given `device` if:
17691788
* - `format` equals `viewFormat`, or
1770-
* - `format` and `viewFormat` differ only in whether they are `srgb` formats (have the `-srgb` suffix).
1789+
* - `format` and `viewFormat` differ only in whether they are `srgb` formats (have the `-srgb` suffix) and `device.features` list/contains {@link GPUFeatureName} `"core-features-and-limits"`.
17711790
* </div>
17721791
*/
17731792
viewFormats?: Iterable<GPUTextureFormat>;
17741793
/**
1775-
* **PROPOSED** in [Compatibility Mode](https://github.com/gpuweb/gpuweb/blob/main/proposals/compatibility-mode.md).
1776-
*
1777-
* > [In compatibility mode,]
1778-
* > When specifying a texture, a textureBindingViewDimension property
1779-
* > determines the views which can be bound from that texture for sampling.
1780-
* > Binding a view of a different dimension for sampling than specified at
1781-
* > texture creation time will cause a validation error.
1794+
* <div class=compatmode>
1795+
* On devices without {@link GPUFeatureName} `"core-features-and-limits"`,
1796+
* views created from this texture must have this as their {@link GPUTextureViewDescriptor#dimension}.
1797+
* If not specified, a default is chosen.
1798+
* </div>
1799+
* On devices with {@link GPUFeatureName} `"core-features-and-limits"`,
1800+
* this is ignored, and there is no such restriction.
17821801
*/
17831802
textureBindingViewDimension?: GPUTextureViewDimension;
17841803
}

0 commit comments

Comments
 (0)