Skip to content

Commit 6a01091

Browse files
move(core): s/create_compute_pass/begin_compute_pass/
1 parent 25a5160 commit 6a01091

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

deno_webgpu/command_encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl GPUCommandEncoder {
158158

159159
let (compute_pass, err) = self
160160
.instance
161-
.command_encoder_create_compute_pass(self.id, &wgpu_descriptor);
161+
.command_encoder_begin_compute_pass(self.id, &wgpu_descriptor);
162162

163163
self.error_handler.push_error(err);
164164

wgpu-core/src/command/compute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl Global {
281281
/// If successful, puts the encoder into the [`Locked`] state.
282282
///
283283
/// [`Locked`]: crate::command::CommandEncoderStatus::Locked
284-
pub fn command_encoder_create_compute_pass(
284+
pub fn command_encoder_begin_compute_pass(
285285
&self,
286286
encoder_id: id::CommandEncoderId,
287287
desc: &ComputePassDescriptor<'_>,
@@ -360,7 +360,7 @@ impl Global {
360360
push_constant_data,
361361
} = base;
362362

363-
let (mut compute_pass, encoder_error) = self.command_encoder_create_compute_pass(
363+
let (mut compute_pass, encoder_error) = self.command_encoder_begin_compute_pass(
364364
encoder_id,
365365
&ComputePassDescriptor {
366366
label: label.as_deref().map(std::borrow::Cow::Borrowed),

wgpu/src/backend/wgpu_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ impl dispatch::CommandEncoderInterface for CoreCommandEncoder {
22382238
end_of_pass_write_index: tw.end_of_pass_write_index,
22392239
});
22402240

2241-
let (pass, err) = self.context.0.command_encoder_create_compute_pass(
2241+
let (pass, err) = self.context.0.command_encoder_begin_compute_pass(
22422242
self.id,
22432243
&wgc::command::ComputePassDescriptor {
22442244
label: desc.label.map(Borrowed),

0 commit comments

Comments
 (0)