Skip to content

Commit 920c584

Browse files
committed
Fixes for immediates
1 parent 9aa1fcd commit 920c584

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

dist/index.d.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,10 @@ interface GPUPipelineLayoutDescriptor
10981098
| null
10991099
| undefined
11001100
>;
1101-
11021101
/**
11031102
* The size in bytes of the immediate data range.
1103+
*
1104+
* **PROPOSED** in [Immediates](https://github.com/gpuweb/gpuweb/pull/5423).
11041105
*/
11051106
immediateSize?: GPUSize32;
11061107
}
@@ -1956,8 +1957,10 @@ interface GPUBindingCommandsMixin {
19561957
* `data` is a `TypedArray` and bytes otherwise. Defaults to 0.
19571958
* @param size - Size of content to write from `data` to `buffer`. Given in elements if
19581959
* `data` is a `TypedArray` and bytes otherwise.
1960+
*
1961+
* **PROPOSED** in [Immediates](https://github.com/gpuweb/gpuweb/pull/5423).
19591962
*/
1960-
setImmediates(
1963+
setImmediates?(
19611964
rangeOffset: GPUSize32,
19621965
data: GPUAllowSharedBufferSource,
19631966
dataOffset?: GPUSize64,
@@ -2210,14 +2213,14 @@ interface GPUAdapterInfo {
22102213
* If the "subgroups" feature is supported, the minimum supported subgroup size for the
22112214
* adapter.
22122215
*
2213-
* TODO: Temporarily optional until all browsers have implemented it.
2216+
* @todo Temporarily optional until all browsers have implemented it.
22142217
*/
22152218
readonly subgroupMinSize?: number;
22162219
/**
22172220
* If the "subgroups" feature is supported, the maximum supported subgroup size for the
22182221
* adapter.
22192222
*
2220-
* TODO: Temporarily optional until all browsers have implemented it.
2223+
* @todo Temporarily optional until all browsers have implemented it.
22212224
*/
22222225
readonly subgroupMaxSize?: number;
22232226
/**
@@ -3214,7 +3217,7 @@ interface GPUSupportedLimits {
32143217
readonly maxComputeWorkgroupSizeZ: number;
32153218
readonly maxComputeWorkgroupsPerDimension: number;
32163219
/** **PROPOSED** in [Immediates](https://github.com/gpuweb/gpuweb/pull/5423). */
3217-
readonly maxImmediateSize: number;
3220+
readonly maxImmediateSize?: number;
32183221
/** **PROPOSED** in [Compatibility Mode](https://github.com/gpuweb/gpuweb/blob/main/proposals/compatibility-mode.md). */
32193222
readonly maxStorageBuffersInVertexStage?: number;
32203223
/** **PROPOSED** in [Compatibility Mode](https://github.com/gpuweb/gpuweb/blob/main/proposals/compatibility-mode.md). */

0 commit comments

Comments
 (0)