Skip to content

Commit 772a770

Browse files
committed
Update again
1 parent f489c53 commit 772a770

File tree

5 files changed

+289
-15
lines changed

5 files changed

+289
-15
lines changed

src/lib/dom.generated.d.ts

Lines changed: 141 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,12 @@ interface GPUBufferBinding {
821821
size?: GPUSize64;
822822
}
823823

824+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
825+
mappedAtCreation?: boolean;
826+
size: GPUSize64;
827+
usage: GPUBufferUsageFlags;
828+
}
829+
824830
interface GPUCanvasConfiguration {
825831
alphaMode?: GPUCanvasAlphaMode;
826832
colorSpace?: PredefinedColorSpace;
@@ -845,6 +851,9 @@ interface GPUColorDict {
845851
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
846852
}
847853

854+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
855+
}
856+
848857
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
849858
timestampWrites?: GPUComputePassTimestampWrites;
850859
}
@@ -855,6 +864,10 @@ interface GPUComputePassTimestampWrites {
855864
querySet: GPUQuerySet;
856865
}
857866

867+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
868+
compute: GPUProgrammableStage;
869+
}
870+
858871
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
859872
colorSpace?: PredefinedColorSpace;
860873
premultipliedAlpha?: boolean;
@@ -892,13 +905,37 @@ interface GPUOrigin3DDict {
892905
z?: GPUIntegerCoordinate;
893906
}
894907

908+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
909+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
910+
}
911+
895912
interface GPUPipelineErrorInit {
896913
reason: GPUPipelineErrorReason;
897914
}
898915

916+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
917+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
918+
}
919+
920+
interface GPUProgrammableStage {
921+
constants?: Record<string, GPUPipelineConstantValue>;
922+
entryPoint?: string;
923+
module: GPUShaderModule;
924+
}
925+
926+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
927+
count: GPUSize32;
928+
type: GPUQueryType;
929+
}
930+
899931
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
900932
}
901933

934+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
935+
depthReadOnly?: boolean;
936+
stencilReadOnly?: boolean;
937+
}
938+
902939
interface GPURenderPassColorAttachment {
903940
clearValue?: GPUColor;
904941
depthSlice?: GPUIntegerCoordinate;
@@ -928,12 +965,35 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
928965
timestampWrites?: GPURenderPassTimestampWrites;
929966
}
930967

968+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
969+
colorFormats: (GPUTextureFormat | null)[];
970+
depthStencilFormat?: GPUTextureFormat;
971+
sampleCount?: GPUSize32;
972+
}
973+
931974
interface GPURenderPassTimestampWrites {
932975
beginningOfPassWriteIndex?: GPUSize32;
933976
endOfPassWriteIndex?: GPUSize32;
934977
querySet: GPUQuerySet;
935978
}
936979

980+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
981+
addressModeU?: GPUAddressMode;
982+
addressModeV?: GPUAddressMode;
983+
addressModeW?: GPUAddressMode;
984+
compare?: GPUCompareFunction;
985+
lodMaxClamp?: number;
986+
lodMinClamp?: number;
987+
magFilter?: GPUFilterMode;
988+
maxAnisotropy?: number;
989+
minFilter?: GPUFilterMode;
990+
mipmapFilter?: GPUMipmapFilterMode;
991+
}
992+
993+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
994+
code: string;
995+
}
996+
937997
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
938998
buffer: GPUBuffer;
939999
}
@@ -951,6 +1011,16 @@ interface GPUTexelCopyTextureInfo {
9511011
texture: GPUTexture;
9521012
}
9531013

1014+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
1015+
dimension?: GPUTextureDimension;
1016+
format: GPUTextureFormat;
1017+
mipLevelCount?: GPUIntegerCoordinate;
1018+
sampleCount?: GPUSize32;
1019+
size: GPUExtent3D;
1020+
usage: GPUTextureUsageFlags;
1021+
viewFormats?: GPUTextureFormat[];
1022+
}
1023+
9541024
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
9551025
arrayLayerCount?: GPUIntegerCoordinate;
9561026
aspect?: GPUTextureAspect;
@@ -15345,6 +15415,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
1534515415
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
1534615416
*/
1534715417
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15418+
/**
15419+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
15420+
*
15421+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
15422+
*/
15423+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
15424+
/**
15425+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
15426+
*
15427+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
15428+
*/
15429+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
15430+
/**
15431+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
15432+
*
15433+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
15434+
*/
15435+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
15436+
/**
15437+
* The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
15438+
*
15439+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
15440+
*/
15441+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
15442+
/**
15443+
* The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
15444+
*
15445+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
15446+
*/
15447+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
15448+
/**
15449+
* The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
15450+
*
15451+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
15452+
*/
15453+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
15454+
/**
15455+
* The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
15456+
*
15457+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
15458+
*/
15459+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
15460+
/**
15461+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
15462+
*
15463+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
15464+
*/
15465+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
15466+
/**
15467+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
15468+
*
15469+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
15470+
*/
15471+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
15472+
/**
15473+
* The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
15474+
*
15475+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
15476+
*/
15477+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
1534815478
/**
1534915479
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
1535015480
*
@@ -25307,7 +25437,7 @@ declare var NavigationHistoryEntry: {
2530725437
};
2530825438

2530925439
/**
25310-
* The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
25440+
* The **`NavigationPrecommitController`** interface of the Navigation API is passed as an argument to a navigation precommit handler callback.
2531125441
*
2531225442
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
2531325443
*/
@@ -36344,7 +36474,7 @@ interface TextTrackCueEventMap {
3634436474
}
3634536475

3634636476
/**
36347-
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
36477+
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue and DataCue; you will work with these derived types rather than the base class.
3634836478
*
3634936479
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
3635036480
*/
@@ -37767,7 +37897,7 @@ interface ViewTransition {
3776737897
*
3776837898
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/types)
3776937899
*/
37770-
types: ViewTransitionTypeSet;
37900+
readonly types: ViewTransitionTypeSet;
3777137901
/**
3777237902
* The **`updateCallbackDone`** read-only property of the ViewTransition interface is a Promise that fulfills when the promise returned by the document.startViewTransition() method's callback fulfills, or rejects when it rejects.
3777337903
*
@@ -42133,7 +42263,7 @@ declare namespace WebAssembly {
4213342263
*
4213442264
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
4213542265
*/
42136-
getArg(index: number): any;
42266+
getArg(exceptionTag: Tag, index: number): any;
4213742267
/**
4213842268
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
4213942269
*
@@ -43787,6 +43917,7 @@ type GLuint = number;
4378743917
type GLuint64 = number;
4378843918
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
4378943919
type GPUBufferDynamicOffset = number;
43920+
type GPUBufferUsageFlags = number;
4379043921
type GPUColor = number[] | GPUColorDict;
4379143922
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
4379243923
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
@@ -43797,6 +43928,7 @@ type GPUIntegerCoordinateOut = number;
4379743928
type GPUMapModeFlags = number;
4379843929
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
4379943930
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43931+
type GPUPipelineConstantValue = number;
4380043932
type GPUSignedOffset32 = number;
4380143933
type GPUSize32 = number;
4380243934
type GPUSize32Out = number;
@@ -43910,14 +44042,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
4391044042
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
4391144043
type FontFaceSetLoadStatus = "loaded" | "loading";
4391244044
type FullscreenNavigationUI = "auto" | "hide" | "show";
44045+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
44046+
type GPUAutoLayoutMode = "auto";
4391344047
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
4391444048
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
4391544049
type GPUCanvasToneMappingMode = "extended" | "standard";
44050+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
4391644051
type GPUCompilationMessageType = "error" | "info" | "warning";
4391744052
type GPUDeviceLostReason = "destroyed" | "unknown";
4391844053
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
44054+
type GPUFilterMode = "linear" | "nearest";
4391944055
type GPUIndexFormat = "uint16" | "uint32";
4392044056
type GPULoadOp = "clear" | "load";
44057+
type GPUMipmapFilterMode = "linear" | "nearest";
4392144058
type GPUPipelineErrorReason = "internal" | "validation";
4392244059
type GPUQueryType = "occlusion" | "timestamp";
4392344060
type GPUStoreOp = "discard" | "store";

0 commit comments

Comments
 (0)