From b765eeb4741dbcb856ead974d3285653b10753a1 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 29 Apr 2024 10:34:06 -0700 Subject: [PATCH] [core] Removed outdated safety comments from no-longer-unsafe fns. (#5633) --- wgpu-core/src/command/render.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wgpu-core/src/command/render.rs b/wgpu-core/src/command/render.rs index 60e915e621..87dc9aac16 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -2468,10 +2468,6 @@ pub mod render_commands { use std::{convert::TryInto, num::NonZeroU32}; use wgt::{BufferAddress, BufferSize, Color, DynamicOffset, IndexFormat}; - /// # Safety - /// - /// This function is unsafe as there is no guarantee that the given pointer is - /// valid for `offset_length` elements. pub fn wgpu_render_pass_set_bind_group( pass: &mut RenderPass, index: u32, @@ -2571,10 +2567,6 @@ pub mod render_commands { .push(RenderCommand::SetScissor(Rect { x, y, w, h })); } - /// # Safety - /// - /// This function is unsafe as there is no guarantee that the given pointer is - /// valid for `size_bytes` bytes. pub fn wgpu_render_pass_set_push_constants( pass: &mut RenderPass, stages: wgt::ShaderStages,