Skip to content

Commit b765eeb

Browse files
authored
[core] Removed outdated safety comments from no-longer-unsafe fns. (#5633)
1 parent 08efa72 commit b765eeb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

wgpu-core/src/command/render.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,10 +2468,6 @@ pub mod render_commands {
24682468
use std::{convert::TryInto, num::NonZeroU32};
24692469
use wgt::{BufferAddress, BufferSize, Color, DynamicOffset, IndexFormat};
24702470

2471-
/// # Safety
2472-
///
2473-
/// This function is unsafe as there is no guarantee that the given pointer is
2474-
/// valid for `offset_length` elements.
24752471
pub fn wgpu_render_pass_set_bind_group(
24762472
pass: &mut RenderPass,
24772473
index: u32,
@@ -2571,10 +2567,6 @@ pub mod render_commands {
25712567
.push(RenderCommand::SetScissor(Rect { x, y, w, h }));
25722568
}
25732569

2574-
/// # Safety
2575-
///
2576-
/// This function is unsafe as there is no guarantee that the given pointer is
2577-
/// valid for `size_bytes` bytes.
25782570
pub fn wgpu_render_pass_set_push_constants(
25792571
pass: &mut RenderPass,
25802572
stages: wgt::ShaderStages,

0 commit comments

Comments
 (0)