fix(deno): Mark some methods reentrant (#10061)

This commit is contained in:
Andy Leiserson authored and GitHub committed 2026-09-01 06:05:18 -04:00
1 parent 7bcd2125ff
commit 72e5062761
9 files changed
+28

No files matched your search

+1
View File
@@ -118,6 +118,7 @@ impl GPUAdapter {
}
#[async_method(fake)]
#[reentrant]
#[global]
fn request_device(
&self,
+6
View File
@@ -60,6 +60,7 @@ impl GPUCommandEncoder {
// TODO(@crowlKats): no-op, needs wpgu to implement changing the label
}
#[reentrant]
#[required(1)]
#[cppgc]
fn begin_render_pass(
@@ -139,6 +140,7 @@ impl GPUCommandEncoder {
})
}
#[reentrant]
#[cppgc]
fn begin_compute_pass(
&self,
@@ -253,6 +255,7 @@ impl GPUCommandEncoder {
Ok(())
}
#[reentrant]
#[required(3)]
#[undefined]
fn copy_buffer_to_texture(
@@ -283,6 +286,7 @@ impl GPUCommandEncoder {
);
}
#[reentrant]
#[required(3)]
#[undefined]
fn copy_texture_to_buffer(
@@ -313,6 +317,7 @@ impl GPUCommandEncoder {
);
}
#[reentrant]
#[required(3)]
#[undefined]
fn copy_texture_to_texture(
@@ -375,6 +380,7 @@ impl GPUCommandEncoder {
);
}
#[reentrant]
#[cppgc]
fn finish(
&self,
+13
View File
@@ -152,6 +152,7 @@ impl GPUDevice {
self.wgpu_device.destroy();
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_buffer(
@@ -210,6 +211,7 @@ impl GPUDevice {
})
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_texture(
@@ -260,6 +262,7 @@ impl GPUDevice {
})
}
#[reentrant]
#[cppgc]
fn create_sampler(
&self,
@@ -290,6 +293,7 @@ impl GPUDevice {
})
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_bind_group_layout(
@@ -367,6 +371,7 @@ impl GPUDevice {
})
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_pipeline_layout(
@@ -398,6 +403,7 @@ impl GPUDevice {
}
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_bind_group(
@@ -456,6 +462,7 @@ impl GPUDevice {
}
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_shader_module(
@@ -488,6 +495,7 @@ impl GPUDevice {
}
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_compute_pipeline(
@@ -504,6 +512,7 @@ impl GPUDevice {
}
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_render_pipeline(
@@ -516,6 +525,7 @@ impl GPUDevice {
}
#[async_method(fake)]
#[reentrant]
#[required(1)]
#[cppgc]
#[global]
@@ -555,6 +565,7 @@ impl GPUDevice {
}
#[async_method(fake)]
#[reentrant]
#[required(1)]
#[cppgc]
#[global]
@@ -641,6 +652,7 @@ impl GPUDevice {
obj
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_render_bundle_encoder(
@@ -689,6 +701,7 @@ impl GPUDevice {
})
}
#[reentrant]
#[required(1)]
#[cppgc]
fn create_query_set(
+1
View File
@@ -175,6 +175,7 @@ impl GPU {
}
#[async_method]
#[reentrant]
#[cppgc]
async fn request_adapter(
&self,
+2
View File
@@ -54,6 +54,7 @@ impl GPUQueue {
// TODO(@crowlKats): no-op, needs wpgu to implement changing the label
}
#[reentrant]
#[required(1)]
#[undefined]
fn submit(
@@ -134,6 +135,7 @@ impl GPUQueue {
Ok(())
}
#[reentrant]
#[required(4)]
#[undefined]
fn write_texture(
+1
View File
@@ -52,6 +52,7 @@ impl GPURenderBundleEncoder {
// TODO(@crowlKats): no-op, needs wpgu to implement changing the label
}
#[reentrant]
#[cppgc]
fn finish(
&self,
+2
View File
@@ -90,6 +90,7 @@ impl GPURenderPassEncoder {
.set_scissor_rect(x, y, width, height);
}
#[reentrant]
#[required(1)]
#[undefined]
fn set_blend_constant(&self, #[webidl] color: GPUColor) {
@@ -129,6 +130,7 @@ impl GPURenderPassEncoder {
self.render_pass.borrow_mut().end_occlusion_query();
}
#[reentrant]
#[required(1)]
#[undefined]
fn execute_bundles(&self, #[webidl] bundles: Vec<Ptr<GPURenderBundle>>) {
+1
View File
@@ -70,6 +70,7 @@ impl GPUCanvasContext {
self.canvas.clone()
}
#[reentrant]
#[undefined]
fn configure(
&self,
+1
View File
@@ -134,6 +134,7 @@ impl GPUTexture {
self.wgpu_texture.destroy();
}
#[reentrant]
#[cppgc]
fn create_view(
&self,