mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
[core] Removed outdated safety comments from no-longer-unsafe fns. (#5633)
This commit is contained in:
1 parent
08efa72a83
commit
b765eeb474
1 file changed
-8
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user