diff --git a/dist/index.d.ts b/dist/index.d.ts index 94b0b72..5077012 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1099,10 +1099,7 @@ interface GPUPipelineLayoutDescriptor | undefined >; /** - * The size in bytes of the immediate data range. - * - * **PROPOSED** in [Immediates](https://github.com/gpuweb/gpuweb/pull/5423). - * Check support before using. (Use the non-null assertion operator `!` where needed.) + * The size, in bytes, of the immediate data range used by the pipeline. */ immediateSize?: GPUSize32; } @@ -1951,22 +1948,19 @@ interface GPUBindingCommandsMixin { dynamicOffsetsDataLength: GPUSize32 ): undefined; /** - * Sets immediate data for subsequent render or compute commands + * Sets immediate data for subsequent render or compute commands. * @param rangeOffset - Offset in bytes into the immediate data range to begin writing at. * @param data - Data to write into the immediate data range. * @param dataOffset - Offset into `data` to begin writing from. Given in elements if - * `data` is a `TypedArray` and bytes otherwise. Defaults to 0. - * @param size - Size of content to write from `data` to `buffer`. Given in elements if - * `data` is a `TypedArray` and bytes otherwise. - * - * **PROPOSED** in [Immediates](https://github.com/gpuweb/gpuweb/pull/5423). - * Check support before using. (Use the non-null assertion operator `!` where needed.) + * `data` is a {@link TypedArray} and bytes otherwise. + * @param dataSize - Size of content to write from `data`. Given in elements if + * `data` is a {@link TypedArray} and bytes otherwise. */ - setImmediates?( + setImmediates( rangeOffset: GPUSize32, data: GPUAllowSharedBufferSource, dataOffset?: GPUSize64, - size?: GPUSize64 + dataSize?: GPUSize64 ): undefined; } @@ -3240,11 +3234,7 @@ interface GPUSupportedLimits { readonly maxComputeWorkgroupSizeY: number; readonly maxComputeWorkgroupSizeZ: number; readonly maxComputeWorkgroupsPerDimension: number; - /** - * **PROPOSED** in [Immediates](https://github.com/gpuweb/gpuweb/pull/5423). - * Check support before using. (Use the non-null assertion operator `!` where needed.) - */ - readonly maxImmediateSize?: number; + readonly maxImmediateSize: number; } declare var GPUSupportedLimits: { diff --git a/generated/index.d.ts b/generated/index.d.ts index 851e45d..7475eb9 100644 --- a/generated/index.d.ts +++ b/generated/index.d.ts @@ -1098,6 +1098,10 @@ interface GPUPipelineLayoutDescriptor | null | undefined >; + /** + * The size, in bytes, of the immediate data range used by the pipeline. + */ + immediateSize?: GPUSize32; } interface GPUPrimitiveState { @@ -1899,6 +1903,21 @@ interface GPUBindingCommandsMixin { dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32 ): undefined; + /** + * Sets immediate data for subsequent render or compute commands. + * @param rangeOffset - Offset in bytes into the immediate data range to begin writing at. + * @param data - Data to write into the immediate data range. + * @param dataOffset - Offset into `data` to begin writing from. Given in elements if + * `data` is a {@link TypedArray} and bytes otherwise. + * @param dataSize - Size of content to write from `data`. Given in elements if + * `data` is a {@link TypedArray} and bytes otherwise. + */ + setImmediates( + rangeOffset: GPUSize32, + data: GPUAllowSharedBufferSource, + dataOffset?: GPUSize64, + dataSize?: GPUSize64 + ): undefined; } interface GPUCommandsMixin {} @@ -2860,8 +2879,8 @@ interface GPURenderPassEncoder * Executes the commands previously recorded into the given {@link GPURenderBundle}s as part of * this render pass. * When a {@link GPURenderBundle} is executed, it does not inherit the render pass's pipeline, bind - * groups, or vertex and index buffers. After a {@link GPURenderBundle} has executed, the render - * pass's pipeline, bind group, and vertex/index buffer state is cleared + * groups, immediate data, or vertex and index buffers. After a {@link GPURenderBundle} has executed, the render + * pass's pipeline, bind group, immediate data, and vertex/index buffer state is cleared * (to the initial, empty values). * Note: The state is cleared, not restored to the previous state. * This occurs even if zero {@link GPURenderBundle | GPURenderBundles} are executed. @@ -2933,6 +2952,7 @@ interface GPUSupportedLimits { readonly maxTextureArrayLayers: number; readonly maxBindGroups: number; readonly maxBindGroupsPlusVertexBuffers: number; + readonly maxImmediateSize: number; readonly maxBindingsPerBindGroup: number; readonly maxDynamicUniformBuffersPerPipelineLayout: number; readonly maxDynamicStorageBuffersPerPipelineLayout: number; diff --git a/gpuweb b/gpuweb index 7e38318..6bf9e46 160000 --- a/gpuweb +++ b/gpuweb @@ -1 +1 @@ -Subproject commit 7e3831803c26ae169bebfb6750204c94a7b9797e +Subproject commit 6bf9e4611a95afe51a519132b31e025217507d3d