Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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: {
Expand Down
24 changes: 22 additions & 2 deletions generated/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down
Loading