Skip to content

Commit

Permalink
Add additional docs for command_encoder_as_hal_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Mar 30, 2024
1 parent 6827ab2 commit 2daa2a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions wgpu/src/backend/wgpu_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ impl ContextWgpuCore {
}
}

/// This method will start the wgpu_core level command recording.
pub unsafe fn command_encoder_as_hal_mut<
A: wgc::hal_api::HalApi,
F: FnOnce(Option<&mut A::CommandEncoder>) -> R,
Expand Down
2 changes: 2 additions & 0 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3474,6 +3474,8 @@ impl CommandEncoder {
/// Returns the inner hal CommandEncoder using a callback. The hal command encoder will be `None` if the
/// backend type argument does not match with this wgpu CommandEncoder
///
/// This method will start the wgpu_core level command recording.
///
/// # Safety
///
/// - The raw handle obtained from the hal CommandEncoder must not be manually destroyed
Expand Down

0 comments on commit 2daa2a6

Please sign in to comment.