Skip to content

Commit 0f96fae

Browse files
authored
Add GPUShaderModule (#2375)
Co-authored-by: saschanaz <[email protected]>
1 parent a49dcf8 commit 0f96fae

17 files changed

+320
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15020,6 +15020,26 @@ declare var GPUSampler: {
1502015020
new(): GPUSampler;
1502115021
};
1502215022

15023+
/**
15024+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
15025+
* Available only in secure contexts.
15026+
*
15027+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
15028+
*/
15029+
interface GPUShaderModule extends GPUObjectBase {
15030+
/**
15031+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
15032+
*
15033+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
15034+
*/
15035+
getCompilationInfo(): Promise<GPUCompilationInfo>;
15036+
}
15037+
15038+
declare var GPUShaderModule: {
15039+
prototype: GPUShaderModule;
15040+
new(): GPUShaderModule;
15041+
};
15042+
1502315043
/**
1502415044
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
1502515045
* Available only in secure contexts.

baselines/serviceworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4497,6 +4497,26 @@ declare var GPUSampler: {
44974497
new(): GPUSampler;
44984498
};
44994499

4500+
/**
4501+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4502+
* Available only in secure contexts.
4503+
*
4504+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4505+
*/
4506+
interface GPUShaderModule extends GPUObjectBase {
4507+
/**
4508+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4509+
*
4510+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4511+
*/
4512+
getCompilationInfo(): Promise<GPUCompilationInfo>;
4513+
}
4514+
4515+
declare var GPUShaderModule: {
4516+
prototype: GPUShaderModule;
4517+
new(): GPUShaderModule;
4518+
};
4519+
45004520
/**
45014521
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
45024522
* Available only in secure contexts.

baselines/sharedworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4180,6 +4180,26 @@ declare var GPUSampler: {
41804180
new(): GPUSampler;
41814181
};
41824182

4183+
/**
4184+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4185+
* Available only in secure contexts.
4186+
*
4187+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4188+
*/
4189+
interface GPUShaderModule extends GPUObjectBase {
4190+
/**
4191+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4192+
*
4193+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4194+
*/
4195+
getCompilationInfo(): Promise<GPUCompilationInfo>;
4196+
}
4197+
4198+
declare var GPUShaderModule: {
4199+
prototype: GPUShaderModule;
4200+
new(): GPUShaderModule;
4201+
};
4202+
41834203
/**
41844204
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
41854205
* Available only in secure contexts.

baselines/ts5.5/dom.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15006,6 +15006,26 @@ declare var GPUSampler: {
1500615006
new(): GPUSampler;
1500715007
};
1500815008

15009+
/**
15010+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
15011+
* Available only in secure contexts.
15012+
*
15013+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
15014+
*/
15015+
interface GPUShaderModule extends GPUObjectBase {
15016+
/**
15017+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
15018+
*
15019+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
15020+
*/
15021+
getCompilationInfo(): Promise<GPUCompilationInfo>;
15022+
}
15023+
15024+
declare var GPUShaderModule: {
15025+
prototype: GPUShaderModule;
15026+
new(): GPUShaderModule;
15027+
};
15028+
1500915029
/**
1501015030
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
1501115031
* Available only in secure contexts.

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4494,6 +4494,26 @@ declare var GPUSampler: {
44944494
new(): GPUSampler;
44954495
};
44964496

4497+
/**
4498+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4499+
* Available only in secure contexts.
4500+
*
4501+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4502+
*/
4503+
interface GPUShaderModule extends GPUObjectBase {
4504+
/**
4505+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4506+
*
4507+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4508+
*/
4509+
getCompilationInfo(): Promise<GPUCompilationInfo>;
4510+
}
4511+
4512+
declare var GPUShaderModule: {
4513+
prototype: GPUShaderModule;
4514+
new(): GPUShaderModule;
4515+
};
4516+
44974517
/**
44984518
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
44994519
* Available only in secure contexts.

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4177,6 +4177,26 @@ declare var GPUSampler: {
41774177
new(): GPUSampler;
41784178
};
41794179

4180+
/**
4181+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4182+
* Available only in secure contexts.
4183+
*
4184+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4185+
*/
4186+
interface GPUShaderModule extends GPUObjectBase {
4187+
/**
4188+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4189+
*
4190+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4191+
*/
4192+
getCompilationInfo(): Promise<GPUCompilationInfo>;
4193+
}
4194+
4195+
declare var GPUShaderModule: {
4196+
prototype: GPUShaderModule;
4197+
new(): GPUShaderModule;
4198+
};
4199+
41804200
/**
41814201
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
41824202
* Available only in secure contexts.

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5196,6 +5196,26 @@ declare var GPUSampler: {
51965196
new(): GPUSampler;
51975197
};
51985198

5199+
/**
5200+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
5201+
* Available only in secure contexts.
5202+
*
5203+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
5204+
*/
5205+
interface GPUShaderModule extends GPUObjectBase {
5206+
/**
5207+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
5208+
*
5209+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
5210+
*/
5211+
getCompilationInfo(): Promise<GPUCompilationInfo>;
5212+
}
5213+
5214+
declare var GPUShaderModule: {
5215+
prototype: GPUShaderModule;
5216+
new(): GPUShaderModule;
5217+
};
5218+
51995219
/**
52005220
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
52015221
* Available only in secure contexts.

baselines/ts5.6/dom.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15017,6 +15017,26 @@ declare var GPUSampler: {
1501715017
new(): GPUSampler;
1501815018
};
1501915019

15020+
/**
15021+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
15022+
* Available only in secure contexts.
15023+
*
15024+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
15025+
*/
15026+
interface GPUShaderModule extends GPUObjectBase {
15027+
/**
15028+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
15029+
*
15030+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
15031+
*/
15032+
getCompilationInfo(): Promise<GPUCompilationInfo>;
15033+
}
15034+
15035+
declare var GPUShaderModule: {
15036+
prototype: GPUShaderModule;
15037+
new(): GPUShaderModule;
15038+
};
15039+
1502015040
/**
1502115041
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
1502215042
* Available only in secure contexts.

baselines/ts5.6/serviceworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4494,6 +4494,26 @@ declare var GPUSampler: {
44944494
new(): GPUSampler;
44954495
};
44964496

4497+
/**
4498+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4499+
* Available only in secure contexts.
4500+
*
4501+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4502+
*/
4503+
interface GPUShaderModule extends GPUObjectBase {
4504+
/**
4505+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4506+
*
4507+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4508+
*/
4509+
getCompilationInfo(): Promise<GPUCompilationInfo>;
4510+
}
4511+
4512+
declare var GPUShaderModule: {
4513+
prototype: GPUShaderModule;
4514+
new(): GPUShaderModule;
4515+
};
4516+
44974517
/**
44984518
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
44994519
* Available only in secure contexts.

baselines/ts5.6/sharedworker.generated.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4177,6 +4177,26 @@ declare var GPUSampler: {
41774177
new(): GPUSampler;
41784178
};
41794179

4180+
/**
4181+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4182+
* Available only in secure contexts.
4183+
*
4184+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4185+
*/
4186+
interface GPUShaderModule extends GPUObjectBase {
4187+
/**
4188+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4189+
*
4190+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4191+
*/
4192+
getCompilationInfo(): Promise<GPUCompilationInfo>;
4193+
}
4194+
4195+
declare var GPUShaderModule: {
4196+
prototype: GPUShaderModule;
4197+
new(): GPUShaderModule;
4198+
};
4199+
41804200
/**
41814201
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
41824202
* Available only in secure contexts.

0 commit comments

Comments
 (0)