Skip to content

Commit 5875d15

Browse files
committed
Roll gpuweb
1 parent 1670564 commit 5875d15

2 files changed

Lines changed: 46 additions & 10 deletions

File tree

generated/index.d.ts

Lines changed: 45 additions & 9 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
/**
@@ -1450,16 +1450,35 @@ interface GPURenderPipelineDescriptor
14501450

14511451
interface GPURequestAdapterOptions {
14521452
/**
1453-
* "Feature level" for the adapter request.
1453+
* Requests an adapter that supports at least a particular set of capabilities.
1454+
* This influences the {@link adapter/{@link https://www.w3.org/TR/webgpu/default feature level}} of devices created
1455+
* from this adapter. The capabilities for each level are defined below, and the exact
1456+
* steps are defined in {@link GPU#requestAdapter} and "a new device".
1457+
* If the implementation or system does not support all of the capabilities in the
1458+
* requested feature level, {@link GPU#requestAdapter} will return `null`.
1459+
* Note:
1460+
* Applications should typically make a single {@link GPU#requestAdapter} call with the lowest
1461+
* feature level they support, then inspect the adapter for additional capabilities they can
1462+
* use optionally, and request those in {@link GPUAdapter#requestDevice}.
14541463
* The allowed <dfn dfn for="">feature level string</dfn> values are:
14551464
* <dl dfn-type=dfn dfn-for="feature level string">
14561465
* : <dfn noexport>"core"</dfn>
1457-
* No effect.
1466+
* The following set of capabilities:
1467+
* - The limit/Default limits.
1468+
* - {@link GPUFeatureName} `"core-features-and-limits"`.
1469+
* Note:
1470+
* Adapters with this {@link adapter/{@link https://www.w3.org/TR/webgpu/default feature level}} may
1471+
* conventionally be referred to as "Core-defaulting".
14581472
* : <dfn noexport>"compatibility"</dfn>
1459-
* No effect.
1473+
* The following set of capabilities:
1474+
* - The limit/Compatibility Mode Default limits.
1475+
* - No features. (It excludes the {@link GPUFeatureName} `"core-features-and-limits"` feature.)
1476+
* If the implementation cannot enforce the stricter "Compatibility Mode"
1477+
* validation rules, {@link GPU#requestAdapter} will ignore this request and
1478+
* treat it as a request for feature level string/"core".
14601479
* Note:
1461-
* This value is reserved for future use as a way to opt into additional validation restrictions.
1462-
* Applications should not use this value at this time.
1480+
* Adapters with this {@link adapter/{@link https://www.w3.org/TR/webgpu/default feature level}} may
1481+
* conventionally be referred to as "Compatibility-defaulting".
14631482
*/
14641483
featureLevel?: string;
14651484
powerPreference?: GPUPowerPreference;
@@ -1469,7 +1488,7 @@ interface GPURequestAdapterOptions {
14691488

14701489
interface GPUSamplerBindingLayout {
14711490
/**
1472-
* Indicates the required type of a sampler bound to this bindings.
1491+
* Indicates the required type of a sampler bound to this binding.
14731492
*/
14741493
type?: GPUSamplerBindingType;
14751494
}
@@ -1731,12 +1750,22 @@ interface GPUTextureDescriptor
17311750
* </div>
17321751
* Formats in this list must be texture view format compatible with the texture format.
17331752
* <div algorithm data-timeline=const>
1734-
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> if:
1753+
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> on a given `device` if:
17351754
* - `format` equals `viewFormat`, or
1736-
* - `format` and `viewFormat` differ only in whether they are `srgb` formats (have the `-srgb` suffix).
1755+
* - `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"`.
17371756
* </div>
17381757
*/
17391758
viewFormats?: Iterable<GPUTextureFormat>;
1759+
/**
1760+
* <div class=compatmode>
1761+
* On devices without {@link GPUFeatureName} `"core-features-and-limits"`,
1762+
* views created from this texture must have this as their {@link GPUTextureViewDescriptor#dimension}.
1763+
* If not specified, a default is chosen.
1764+
* </div>
1765+
* On devices with {@link GPUFeatureName} `"core-features-and-limits"`,
1766+
* this is ignored, and there is no such restriction.
1767+
*/
1768+
textureBindingViewDimension?: GPUTextureViewDimension;
17401769
}
17411770

17421771
interface GPUTextureViewDescriptor
@@ -2910,7 +2939,11 @@ interface GPUSupportedLimits {
29102939
readonly maxSampledTexturesPerShaderStage: number;
29112940
readonly maxSamplersPerShaderStage: number;
29122941
readonly maxStorageBuffersPerShaderStage: number;
2942+
readonly maxStorageBuffersInVertexStage: number;
2943+
readonly maxStorageBuffersInFragmentStage: number;
29132944
readonly maxStorageTexturesPerShaderStage: number;
2945+
readonly maxStorageTexturesInVertexStage: number;
2946+
readonly maxStorageTexturesInFragmentStage: number;
29142947
readonly maxUniformBuffersPerShaderStage: number;
29152948
readonly maxUniformBufferBindingSize: number;
29162949
readonly maxStorageBufferBindingSize: number;
@@ -2959,6 +2992,9 @@ interface GPUTexture
29592992
readonly dimension: GPUTextureDimension;
29602993
readonly format: GPUTextureFormat;
29612994
readonly usage: GPUFlagsConstant;
2995+
readonly textureBindingViewDimension:
2996+
| GPUTextureViewDimension
2997+
| undefined;
29622998
}
29632999

29643000
declare var GPUTexture: {

0 commit comments

Comments
 (0)