chore: update deno (#3258)

* update deno
* bump ver
This commit is contained in:
Leo Kettmeir 2022-12-03 18:35:10 +01:00 committed by GitHub
parent 5f3acf50b4
commit 9cc0ff1cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 172 additions and 246 deletions

101
Cargo.lock generated
View File

@ -131,12 +131,6 @@ dependencies = [
"safemem",
]
[[package]]
name = "base64"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7"
[[package]]
name = "base64"
version = "0.13.0"
@ -145,9 +139,9 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
[[package]]
name = "base64-simd"
version = "0.6.2"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "278c7ba87265587c4823cf1b2fdf57834151540b2e509574adb03627f8c7f22d"
checksum = "781dd20c3aff0bd194fe7d2a977dd92f21c173891f3a03b677359e5fa457e5d5"
dependencies = [
"simd-abstraction",
]
@ -523,20 +517,21 @@ dependencies = [
[[package]]
name = "deno_console"
version = "0.69.0"
version = "0.80.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02cd684bd0097101aa8b411dac1e955ded1bc9c0945a453b607af929ca33b380"
checksum = "68a13f7497eaec2c5b7f766d7cecbdd8547611dabd6ce8f615c507d275887049"
dependencies = [
"deno_core",
]
[[package]]
name = "deno_core"
version = "0.151.0"
version = "0.162.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "390bdf983f9f20d403b09894ce4d9baeb980fa5faa33bf859c47ffa729abd157"
checksum = "3f2aa18d22faadc44c9c287b4d6f5a0f2aeea75a120d2a7d400a98e4b9255584"
dependencies = [
"anyhow",
"bytes",
"deno_ops",
"futures",
"indexmap",
@ -548,6 +543,7 @@ dependencies = [
"serde",
"serde_json",
"serde_v8",
"smallvec",
"sourcemap",
"url",
"v8",
@ -555,11 +551,12 @@ dependencies = [
[[package]]
name = "deno_ops"
version = "0.29.0"
version = "0.40.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73e5775de06dc4589c43fa5d81d962f8db9640ccf214291625300e6bf6f3e806"
checksum = "83ddd1b980dcf7c7b4ad586338704c78c6423608f4b8fd622d72bfa76006333f"
dependencies = [
"once_cell",
"pmutil",
"proc-macro-crate",
"proc-macro2",
"quote",
@ -569,9 +566,9 @@ dependencies = [
[[package]]
name = "deno_url"
version = "0.69.0"
version = "0.80.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcc823c3e01d24a2a55e8e9b23fcdcfdf376c039a24b3e3571b9b17630f05186"
checksum = "4d0cf9b99857820d594cc816b84507ba062f276427aab815c380cdeec6554021"
dependencies = [
"deno_core",
"serde",
@ -581,9 +578,9 @@ dependencies = [
[[package]]
name = "deno_web"
version = "0.100.0"
version = "0.111.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "204620cb1ce3ec06b74d51fb3370c4fcb25d34d42b0557b6e97bbe84ea64e770"
checksum = "54f0a00df81eee23798d2a516bdc54d7541e3008310b26e7f79533df7d22bd7b"
dependencies = [
"async-trait",
"base64-simd",
@ -608,9 +605,9 @@ dependencies = [
[[package]]
name = "deno_webidl"
version = "0.69.0"
version = "0.80.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3bbfcb5416924c4b7ed50514d6577d8a87a61772a043daabe00d81734f5cb07"
checksum = "92a564d515fb807b1f2712717b4de5082cc59f3f86a7e233c04231a760c001e5"
dependencies = [
"deno_core",
]
@ -1257,9 +1254,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67"
[[package]]
name = "libc"
version = "0.2.134"
version = "0.2.126"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "329c933548736bc49fd575ee68c89e8be4d260064184389a5b77517cddd99ffb"
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
[[package]]
name = "libloading"
@ -1558,9 +1555,9 @@ dependencies = [
[[package]]
name = "once_cell"
version = "1.15.0"
version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1"
checksum = "2f7254b99e31cad77da24b08ebf628882739a608578bb1bcdfc1f9c21260d7c0"
[[package]]
name = "osmesa-sys"
@ -1571,6 +1568,12 @@ dependencies = [
"shared_library",
]
[[package]]
name = "outref"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f222829ae9293e33a9f5e9f440c6760a3d450a64affe1846486b140db81c1f4"
[[package]]
name = "parking"
version = "2.0.0"
@ -1699,6 +1702,17 @@ dependencies = [
"winit",
]
[[package]]
name = "pmutil"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3894e5d549cccbe44afecf72922f277f603cd4bb0219c8342631ef18fffbe004"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "png"
version = "0.17.6"
@ -1998,9 +2012,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
version = "1.0.145"
version = "1.0.144"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "728eb6351430bccb993660dfffc5a72f91ccc1295abaa8ce19b27ebe4f75568b"
checksum = "0f747710de3dcd43b88c9168773254e809d8ddbdf9653b84e2554ab219f17860"
dependencies = [
"serde_derive",
]
@ -2016,9 +2030,9 @@ dependencies = [
[[package]]
name = "serde_derive"
version = "1.0.145"
version = "1.0.144"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81fa1584d3d1bcacd84c277a0dfe21f5b0f6accf4a23d04d4c6d61f1af522b4c"
checksum = "94ed3a816fb1d101812f83e789f888322c34e291f894f19590dc310963e87a00"
dependencies = [
"proc-macro2",
"quote",
@ -2050,9 +2064,9 @@ dependencies = [
[[package]]
name = "serde_v8"
version = "0.62.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f30310f753d4b1347acdd669a30b8e6208029cfbb28d3d91012b19333eeff1"
checksum = "17891f7f7e138e2d25fafd19b5f7a95c2cf1e72be0e6804343c63aa6e90b0287"
dependencies = [
"bytes",
"derive_more",
@ -2104,9 +2118,12 @@ dependencies = [
[[package]]
name = "simd-abstraction"
version = "0.6.2"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2880f3f7b392823ee65bbcc681961cd8e698c6a30e91ab9b4eef1f9c6c226d8"
checksum = "9cadb29c57caadc51ff8346233b5cec1d240b68ce55cf1afc764818791876987"
dependencies = [
"outref",
]
[[package]]
name = "slab"
@ -2163,11 +2180,11 @@ dependencies = [
[[package]]
name = "sourcemap"
version = "6.0.1"
version = "6.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e031f2463ecbdd5f34c950f89f5c1e1032f22c0f8e3dc4bdb2e8b6658cf61eb"
checksum = "c46fdc1838ff49cf692226f5c2b0f5b7538f556863d0eca602984714667ac6e7"
dependencies = [
"base64 0.11.0",
"base64 0.13.0",
"if_chain",
"lazy_static",
"regex",
@ -2295,9 +2312,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tokio"
version = "1.21.2"
version = "1.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099"
checksum = "0020c875007ad96677dcc890298f4b942882c5d4eb7cc8f439fc3bf813dc9c95"
dependencies = [
"autocfg",
"bytes",
@ -2305,6 +2322,7 @@ dependencies = [
"memchr",
"mio",
"num_cpus",
"once_cell",
"parking_lot 0.12.1",
"pin-project-lite",
"signal-hook-registry",
@ -2440,9 +2458,9 @@ dependencies = [
[[package]]
name = "uuid"
version = "1.2.1"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "feb41e78f93363bb2df8b0e86a2ca30eed7806ea16ea0c790d757cf93f79be83"
checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f"
dependencies = [
"getrandom 0.2.7",
"serde",
@ -2450,14 +2468,13 @@ dependencies = [
[[package]]
name = "v8"
version = "0.49.0"
version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a1cbad73336d67babcbe5e3b03c907c8d2ff77fc6f997570af219bbd9fdb6ce"
checksum = "8e9b88668afedf6ec9f8f6d30b446f622498da2ef0b3991a52e10f0ea8c6cc09"
dependencies = [
"bitflags",
"fslock",
"lazy_static",
"libc",
"which",
]

View File

@ -115,11 +115,11 @@ wasm-bindgen-futures = "0.4.33"
web-sys = "0.3.60"
# deno dependencies
deno_console = "0.69.0"
deno_core = "0.151.0"
deno_url = "0.69.0"
deno_web = "0.100.0"
deno_webidl = "0.69.0"
deno_console = "0.80.0"
deno_core = "0.162.0"
deno_url = "0.80.0"
deno_web = "0.111.0"
deno_webidl = "0.80.0"
deno_webgpu = { path = "./deno_webgpu" }
tokio = "1.19.0"
termcolor = "1.1.2"

View File

@ -2,7 +2,7 @@
[package]
name = "deno_webgpu"
version = "0.63.0"
version = "0.81.0"
authors = ["the Deno authors"]
edition.workspace = true
license = "MIT"

View File

@ -10,6 +10,7 @@
((window) => {
const core = window.Deno.core;
const ops = core.ops;
const webidl = window.__bootstrap.webidl;
const eventTarget = window.__bootstrap.eventTarget;
const { DOMException } = window.__bootstrap.domException;
@ -26,12 +27,12 @@
ObjectDefineProperty,
ObjectPrototypeIsPrototypeOf,
Promise,
PromiseAll,
PromisePrototypeCatch,
PromisePrototypeThen,
PromiseReject,
PromiseResolve,
SafeArrayIterator,
SafePromiseAll,
Set,
SetPrototypeEntries,
SetPrototypeForEach,
@ -946,8 +947,7 @@
context: "Argument 1",
});
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync(
"op_webgpu_create_buffer",
const { rid, err } = ops.op_webgpu_create_buffer(
device.rid,
descriptor.label,
descriptor.size,
@ -997,7 +997,7 @@
context: "Argument 1",
});
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync("op_webgpu_create_texture", {
const { rid, err } = ops.op_webgpu_create_texture({
deviceRid: device.rid,
...descriptor,
size: normalizeGPUExtent3D(descriptor.size),
@ -1025,7 +1025,7 @@
context: "Argument 1",
});
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync("op_webgpu_create_sampler", {
const { rid, err } = ops.op_webgpu_create_texture({
deviceRid: device.rid,
...descriptor,
});
@ -1065,8 +1065,7 @@
}
}
const { rid, err } = core.opSync(
"op_webgpu_create_bind_group_layout",
const { rid, err } = ops.op_webgpu_create_bind_group_layout(
device.rid,
descriptor.label,
descriptor.entries,
@ -1108,8 +1107,7 @@
return rid;
},
);
const { rid, err } = core.opSync(
"op_webgpu_create_pipeline_layout",
const { rid, err } = ops.op_webgpu_create_pipeline_layout(
device.rid,
descriptor.label,
bindGroupLayouts,
@ -1203,8 +1201,7 @@
}
});
const { rid, err } = core.opSync(
"op_webgpu_create_bind_group",
const { rid, err } = ops.op_webgpu_create_bind_group(
device.rid,
descriptor.label,
layout,
@ -1233,8 +1230,7 @@
context: "Argument 1",
});
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync(
"op_webgpu_create_shader_module",
const { rid, err } = ops.op_webgpu_create_shader_module(
device.rid,
descriptor.label,
descriptor.code,
@ -1283,8 +1279,7 @@
selfContext: "this",
});
const { rid, err } = core.opSync(
"op_webgpu_create_compute_pipeline",
const { rid, err } = ops.op_webgpu_create_compute_pipeline(
device.rid,
descriptor.label,
layout,
@ -1355,7 +1350,7 @@
};
}
const { rid, err } = core.opSync("op_webgpu_create_render_pipeline", {
const { rid, err } = ops.op_webgpu_create_render_pipeline({
deviceRid: device.rid,
label: descriptor.label,
layout,
@ -1402,8 +1397,7 @@
context: "Argument 1",
});
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync(
"op_webgpu_create_command_encoder",
const { rid, err } = ops.op_webgpu_create_command_encoder(
device.rid,
descriptor.label,
);
@ -1435,13 +1429,10 @@
},
);
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync(
"op_webgpu_create_render_bundle_encoder",
{
deviceRid: device.rid,
...descriptor,
},
);
const { rid, err } = ops.op_webgpu_create_render_bundle_encoder({
deviceRid: device.rid,
...descriptor,
});
device.pushError(err);
const renderBundleEncoder = createGPURenderBundleEncoder(
@ -1469,7 +1460,7 @@
},
);
const device = assertDevice(this, { prefix, context: "this" });
const { rid, err } = core.opSync("op_webgpu_create_query_set", {
const { rid, err } = ops.op_webgpu_create_query_set({
deviceRid: device.rid,
...descriptor,
});
@ -1530,7 +1521,7 @@
"OperationError",
);
}
const operations = PromiseAll(scope.operations);
const operations = SafePromiseAll(scope.operations);
return PromisePrototypeThen(
operations,
() => PromiseResolve(null),
@ -1600,11 +1591,7 @@
return rid;
},
);
const { err } = core.opSync(
"op_webgpu_queue_submit",
device.rid,
commandBufferRids,
);
const { err } = ops.op_webgpu_queue_submit(device.rid, commandBufferRids);
for (const commandBuffer of commandBuffers) {
commandBuffer[_rid] = undefined;
}
@ -1659,8 +1646,7 @@
selfContext: "this",
resourceContext: "Argument 1",
});
const { err } = core.opSync(
"op_webgpu_write_buffer",
const { err } = ops.op_webgpu_write_buffer(
device.rid,
bufferRid,
bufferOffset,
@ -1707,8 +1693,7 @@
selfContext: "this",
resourceContext: "texture",
});
const { err } = core.opSync(
"op_webgpu_write_texture",
const { err } = ops.op_webgpu_write_texture(
device.rid,
{
texture: textureRid,
@ -1979,8 +1964,7 @@
}
const buffer = new ArrayBuffer(rangeSize);
const { rid } = core.opSync(
"op_webgpu_buffer_get_mapped_range",
const { rid } = ops.op_webgpu_buffer_get_mapped_range(
bufferRid,
offset,
size,
@ -2034,8 +2018,7 @@
throw new DOMException(`${prefix}: invalid state.`, "OperationError");
}
for (const [buffer, mappedRid] of mappedRanges) {
const { err } = core.opSync(
"op_webgpu_buffer_unmap",
const { err } = ops.op_webgpu_buffer_unmap(
bufferRid,
mappedRid,
...new SafeArrayIterator(write ? [new Uint8Array(buffer)] : []),
@ -2198,7 +2181,7 @@
});
const device = assertDevice(this, { prefix, context: "this" });
const textureRid = assertResource(this, { prefix, context: "this" });
const { rid, err } = core.opSync("op_webgpu_create_texture_view", {
const { rid, err } = ops.op_webgpu_create_texture_view({
textureRid,
...descriptor,
});
@ -2622,11 +2605,11 @@
prefix,
context: "this",
});
const { rid, label, err } = core.opSync(
"op_webgpu_compute_pipeline_get_bind_group_layout",
computePipelineRid,
index,
);
const { rid, label, err } =
ops.op_webgpu_compute_pipeline_get_bind_group_layout(
computePipelineRid,
index,
);
device.pushError(err);
const bindGroupLayout = createGPUBindGroupLayout(
@ -2699,11 +2682,11 @@
prefix,
context: "this",
});
const { rid, label, err } = core.opSync(
"op_webgpu_render_pipeline_get_bind_group_layout",
renderPipelineRid,
index,
);
const { rid, label, err } =
ops.op_webgpu_render_pipeline_get_bind_group_layout(
renderPipelineRid,
index,
);
device.pushError(err);
const bindGroupLayout = createGPUBindGroupLayout(
@ -2893,8 +2876,7 @@
},
);
const { rid } = core.opSync(
"op_webgpu_command_encoder_begin_render_pass",
const { rid } = ops.op_webgpu_command_encoder_begin_render_pass(
commandEncoderRid,
descriptor.label,
colorAttachments,
@ -2928,8 +2910,7 @@
context: "this",
});
const { rid } = core.opSync(
"op_webgpu_command_encoder_begin_compute_pass",
const { rid } = ops.op_webgpu_command_encoder_begin_compute_pass(
commandEncoderRid,
descriptor.label,
);
@ -3005,8 +2986,7 @@
selfContext: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_copy_buffer_to_buffer",
const { err } = ops.op_webgpu_command_encoder_copy_buffer_to_buffer(
commandEncoderRid,
sourceRid,
sourceOffset,
@ -3063,8 +3043,7 @@
selfContext: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_copy_buffer_to_texture",
const { err } = ops.op_webgpu_command_encoder_copy_buffer_to_texture(
commandEncoderRid,
{
...source,
@ -3128,8 +3107,7 @@
resourceContext: "buffer in Argument 2",
selfContext: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_copy_texture_to_buffer",
const { err } = ops.op_webgpu_command_encoder_copy_texture_to_buffer(
commandEncoderRid,
{
texture: sourceTextureRid,
@ -3193,8 +3171,7 @@
resourceContext: "texture in Argument 2",
selfContext: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_copy_texture_to_texture",
const { err } = ops.op_webgpu_command_encoder_copy_texture_to_texture(
commandEncoderRid,
{
texture: sourceTextureRid,
@ -3247,8 +3224,7 @@
prefix,
context: "Argument 1",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_clear_buffer",
const { err } = ops.op_webgpu_command_encoder_clear_buffer(
commandEncoderRid,
bufferRid,
offset,
@ -3274,8 +3250,7 @@
prefix,
context: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_push_debug_group",
const { err } = ops.op_webgpu_command_encoder_push_debug_group(
commandEncoderRid,
groupLabel,
);
@ -3290,8 +3265,7 @@
prefix,
context: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_pop_debug_group",
const { err } = ops.op_webgpu_command_encoder_pop_debug_group(
commandEncoderRid,
);
device.pushError(err);
@ -3314,8 +3288,7 @@
prefix,
context: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_insert_debug_marker",
const { err } = ops.op_webgpu_command_encoder_insert_debug_marker(
commandEncoderRid,
markerLabel,
);
@ -3353,8 +3326,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_write_timestamp",
const { err } = ops.op_webgpu_command_encoder_write_timestamp(
commandEncoderRid,
querySetRid,
queryIndex,
@ -3423,8 +3395,7 @@
resourceContext: "Argument 3",
selfContext: "this",
});
const { err } = core.opSync(
"op_webgpu_command_encoder_resolve_query_set",
const { err } = ops.op_webgpu_command_encoder_resolve_query_set(
commandEncoderRid,
querySetRid,
firstQuery,
@ -3451,8 +3422,7 @@
prefix,
context: "this",
});
const { rid, err } = core.opSync(
"op_webgpu_command_encoder_finish",
const { rid, err } = ops.op_webgpu_command_encoder_finish(
commandEncoderRid,
descriptor.label,
);
@ -3551,7 +3521,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync("op_webgpu_render_pass_set_viewport", {
ops.op_webgpu_render_pass_set_viewport({
renderPassRid,
x,
y,
@ -3598,8 +3568,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_set_scissor_rect",
ops.op_webgpu_render_pass_set_scissor_rect(
renderPassRid,
x,
y,
@ -3629,8 +3598,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_set_blend_constant",
ops.op_webgpu_render_pass_set_blend_constant(
renderPassRid,
normalizeGPUColor(color),
);
@ -3657,8 +3625,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_set_stencil_reference",
ops.op_webgpu_render_pass_set_stencil_reference(
renderPassRid,
reference,
);
@ -3707,8 +3674,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_begin_pipeline_statistics_query",
ops.op_webgpu_render_pass_begin_pipeline_statistics_query(
renderPassRid,
querySetRid,
queryIndex,
@ -3728,10 +3694,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_end_pipeline_statistics_query",
renderPassRid,
);
ops.op_webgpu_render_pass_end_pipeline_statistics_query(renderPassRid);
}
/**
@ -3769,8 +3732,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_write_timestamp",
ops.op_webgpu_render_pass_write_timestamp(
renderPassRid,
querySetRid,
queryIndex,
@ -3808,11 +3770,7 @@
});
return rid;
});
core.opSync(
"op_webgpu_render_pass_execute_bundles",
renderPassRid,
bundleRids,
);
ops.op_webgpu_render_pass_execute_bundles(renderPassRid, bundleRids);
}
end() {
@ -3827,8 +3785,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
const { err } = core.opSync(
"op_webgpu_render_pass_end",
const { err } = ops.op_webgpu_render_pass_end(
commandEncoderRid,
renderPassRid,
);
@ -3875,8 +3832,7 @@
dynamicOffsetsDataStart = 0;
dynamicOffsetsDataLength = dynamicOffsetsData.length;
}
core.opSync(
"op_webgpu_render_pass_set_bind_group",
ops.op_webgpu_render_pass_set_bind_group(
renderPassRid,
index,
bindGroupRid,
@ -3907,11 +3863,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_push_debug_group",
renderPassRid,
groupLabel,
);
ops.op_webgpu_render_pass_push_debug_group(renderPassRid, groupLabel);
}
popDebugGroup() {
@ -3927,7 +3879,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync("op_webgpu_render_pass_pop_debug_group", renderPassRid);
ops.op_webgpu_render_pass_pop_debug_group(renderPassRid);
}
/**
@ -3951,11 +3903,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_insert_debug_marker",
renderPassRid,
markerLabel,
);
ops.op_webgpu_render_pass_insert_debug_marker(renderPassRid, markerLabel);
}
/**
@ -3988,11 +3936,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_set_pipeline",
renderPassRid,
pipelineRid,
);
ops.op_webgpu_render_pass_set_pipeline(renderPassRid, pipelineRid);
}
/**
@ -4042,8 +3986,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_set_index_buffer",
ops.op_webgpu_render_pass_set_index_buffer(
renderPassRid,
bufferRid,
indexFormat,
@ -4099,8 +4042,7 @@
resourceContext: "Argument 2",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_set_vertex_buffer",
ops.op_webgpu_render_pass_set_vertex_buffer(
renderPassRid,
slot,
bufferRid,
@ -4144,8 +4086,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_draw",
ops.op_webgpu_render_pass_draw(
renderPassRid,
vertexCount,
instanceCount,
@ -4201,8 +4142,7 @@
context: "encoder referenced by this",
});
const renderPassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_render_pass_draw_indexed",
ops.op_webgpu_render_pass_draw_indexed(
renderPassRid,
indexCount,
instanceCount,
@ -4247,8 +4187,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_draw_indirect",
ops.op_webgpu_render_pass_draw_indirect(
renderPassRid,
indirectBufferRid,
indirectOffset,
@ -4290,8 +4229,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_pass_draw_indexed_indirect",
ops.op_webgpu_render_pass_draw_indexed_indirect(
renderPassRid,
indirectBufferRid,
indirectOffset,
@ -4374,11 +4312,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_compute_pass_set_pipeline",
computePassRid,
pipelineRid,
);
ops.op_webgpu_compute_pass_set_pipeline(computePassRid, pipelineRid);
}
/**
@ -4416,8 +4350,7 @@
context: "encoder referenced by this",
});
const computePassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_compute_pass_dispatch_workgroups",
ops.op_webgpu_compute_pass_dispatch_workgroups(
computePassRid,
workgroupCountX,
workgroupCountY,
@ -4460,8 +4393,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_compute_pass_dispatch_workgroups_indirect",
ops.op_webgpu_compute_pass_dispatch_workgroups_indirect(
computePassRid,
indirectBufferRid,
indirectOffset,
@ -4503,8 +4435,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_compute_pass_begin_pipeline_statistics_query",
ops.op_webgpu_compute_pass_begin_pipeline_statistics_query(
computePassRid,
querySetRid,
queryIndex,
@ -4524,10 +4455,7 @@
context: "encoder referenced by this",
});
const computePassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_compute_pass_end_pipeline_statistics_query",
computePassRid,
);
ops.op_webgpu_compute_pass_end_pipeline_statistics_query(computePassRid);
}
/**
@ -4565,8 +4493,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_compute_pass_write_timestamp",
ops.op_webgpu_compute_pass_write_timestamp(
computePassRid,
querySetRid,
queryIndex,
@ -4585,8 +4512,7 @@
context: "encoder referenced by this",
});
const computePassRid = assertResource(this, { prefix, context: "this" });
const { err } = core.opSync(
"op_webgpu_compute_pass_end",
const { err } = ops.op_webgpu_compute_pass_end(
commandEncoderRid,
computePassRid,
);
@ -4633,8 +4559,7 @@
dynamicOffsetsDataStart = 0;
dynamicOffsetsDataLength = dynamicOffsetsData.length;
}
core.opSync(
"op_webgpu_compute_pass_set_bind_group",
ops.op_webgpu_compute_pass_set_bind_group(
computePassRid,
index,
bindGroupRid,
@ -4665,11 +4590,7 @@
context: "encoder referenced by this",
});
const computePassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_compute_pass_push_debug_group",
computePassRid,
groupLabel,
);
ops.op_webgpu_compute_pass_push_debug_group(computePassRid, groupLabel);
}
popDebugGroup() {
@ -4685,7 +4606,7 @@
context: "encoder referenced by this",
});
const computePassRid = assertResource(this, { prefix, context: "this" });
core.opSync("op_webgpu_compute_pass_pop_debug_group", computePassRid);
ops.op_webgpu_compute_pass_pop_debug_group(computePassRid);
}
/**
@ -4709,8 +4630,7 @@
context: "encoder referenced by this",
});
const computePassRid = assertResource(this, { prefix, context: "this" });
core.opSync(
"op_webgpu_compute_pass_insert_debug_marker",
ops.op_webgpu_compute_pass_insert_debug_marker(
computePassRid,
markerLabel,
);
@ -4820,8 +4740,7 @@
prefix,
context: "this",
});
const { rid, err } = core.opSync(
"op_webgpu_render_bundle_encoder_finish",
const { rid, err } = ops.op_webgpu_render_bundle_encoder_finish(
renderBundleEncoderRid,
descriptor.label,
);
@ -4872,8 +4791,7 @@
dynamicOffsetsDataStart = 0;
dynamicOffsetsDataLength = dynamicOffsetsData.length;
}
core.opSync(
"op_webgpu_render_bundle_encoder_set_bind_group",
ops.op_webgpu_render_bundle_encoder_set_bind_group(
renderBundleEncoderRid,
index,
bindGroupRid,
@ -4900,8 +4818,7 @@
prefix,
context: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_push_debug_group",
ops.op_webgpu_render_bundle_encoder_push_debug_group(
renderBundleEncoderRid,
groupLabel,
);
@ -4916,8 +4833,7 @@
prefix,
context: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_pop_debug_group",
ops.op_webgpu_render_bundle_encoder_pop_debug_group(
renderBundleEncoderRid,
);
}
@ -4939,8 +4855,7 @@
prefix,
context: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_insert_debug_marker",
ops.op_webgpu_render_bundle_encoder_insert_debug_marker(
renderBundleEncoderRid,
markerLabel,
);
@ -4972,8 +4887,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_set_pipeline",
ops.op_webgpu_render_bundle_encoder_set_pipeline(
renderBundleEncoderRid,
pipelineRid,
);
@ -5020,8 +4934,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_set_index_buffer",
ops.op_webgpu_render_bundle_encoder_set_index_buffer(
renderBundleEncoderRid,
bufferRid,
indexFormat,
@ -5071,8 +4984,7 @@
resourceContext: "Argument 2",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_set_vertex_buffer",
ops.op_webgpu_render_bundle_encoder_set_vertex_buffer(
renderBundleEncoderRid,
slot,
bufferRid,
@ -5112,8 +5024,7 @@
prefix,
context: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_draw",
ops.op_webgpu_render_bundle_encoder_draw(
renderBundleEncoderRid,
vertexCount,
instanceCount,
@ -5165,8 +5076,7 @@
prefix,
context: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_draw_indexed",
ops.op_webgpu_render_bundle_encoder_draw_indexed(
renderBundleEncoderRid,
indexCount,
instanceCount,
@ -5207,8 +5117,7 @@
resourceContext: "Argument 1",
selfContext: "this",
});
core.opSync(
"op_webgpu_render_bundle_encoder_draw_indirect",
ops.op_webgpu_render_bundle_encoder_draw_indirect(
renderBundleEncoderRid,
indirectBufferRid,
indirectOffset,

View File

@ -790,6 +790,23 @@ dictionary GPUVertexAttribute {
required GPUIndex32 shaderLocation;
};
dictionary GPUImageDataLayout {
GPUSize64 offset = 0;
GPUSize32 bytesPerRow;
GPUSize32 rowsPerImage;
};
dictionary GPUImageCopyBuffer : GPUImageDataLayout {
required GPUBuffer buffer;
};
dictionary GPUImageCopyTexture {
required GPUTexture texture;
GPUIntegerCoordinate mipLevel = 0;
GPUOrigin3D origin = {};
GPUTextureAspect aspect = "all";
};
[Exposed=(Window, DedicatedWorker), SecureContext]
interface GPUCommandBuffer {
};
@ -851,23 +868,6 @@ GPUCommandEncoder includes GPUDebugCommandsMixin;
dictionary GPUCommandEncoderDescriptor : GPUObjectDescriptorBase {
};
dictionary GPUImageDataLayout {
GPUSize64 offset = 0;
GPUSize32 bytesPerRow;
GPUSize32 rowsPerImage;
};
dictionary GPUImageCopyBuffer : GPUImageDataLayout {
required GPUBuffer buffer;
};
dictionary GPUImageCopyTexture {
required GPUTexture texture;
GPUIntegerCoordinate mipLevel = 0;
GPUOrigin3D origin = {};
GPUTextureAspect aspect = "all";
};
interface mixin GPUBindingCommandsMixin {
undefined setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
optional sequence<GPUBufferDynamicOffset> dynamicOffsets = []);
@ -972,7 +972,7 @@ enum GPUStoreOp {
"discard"
};
dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
dictionary GPURenderPassLayout : GPUObjectDescriptorBase {
required sequence<GPUTextureFormat?> colorFormats;
GPUTextureFormat depthStencilFormat;
GPUSize32 sampleCount = 1;