Skip to content

Commit

Permalink
move(core): s/create_compute_pass/begin_compute_pass/
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jan 28, 2025
1 parent 32826af commit 0bb2914
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno_webgpu/command_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ pub fn op_webgpu_command_encoder_begin_compute_pass(
};

let (compute_pass, error) =
instance.command_encoder_create_compute_pass(*command_encoder, &descriptor);
instance.command_encoder_begin_compute_pass(*command_encoder, &descriptor);
let rid = state
.resource_table
.add(super::compute_pass::WebGpuComputePass(RefCell::new(
Expand Down
4 changes: 2 additions & 2 deletions wgpu-core/src/command/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl Global {
/// If successful, puts the encoder into the [`Locked`] state.
///
/// [`Locked`]: crate::command::CommandEncoderStatus::Locked
pub fn command_encoder_create_compute_pass(
pub fn command_encoder_begin_compute_pass(
&self,
encoder_id: id::CommandEncoderId,
desc: &ComputePassDescriptor<'_>,
Expand Down Expand Up @@ -362,7 +362,7 @@ impl Global {
push_constant_data,
} = base;

let (mut compute_pass, encoder_error) = self.command_encoder_create_compute_pass(
let (mut compute_pass, encoder_error) = self.command_encoder_begin_compute_pass(
encoder_id,
&ComputePassDescriptor {
label: label.as_deref().map(std::borrow::Cow::Borrowed),
Expand Down
2 changes: 1 addition & 1 deletion wgpu/src/backend/wgpu_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ impl dispatch::CommandEncoderInterface for CoreCommandEncoder {
end_of_pass_write_index: tw.end_of_pass_write_index,
});

let (pass, err) = self.context.0.command_encoder_create_compute_pass(
let (pass, err) = self.context.0.command_encoder_begin_compute_pass(
self.id,
&wgc::command::ComputePassDescriptor {
label: desc.label.map(Borrowed),
Expand Down

0 comments on commit 0bb2914

Please sign in to comment.