wgpu-core: Adjust imports to allow no_std.

Dependencies on `std` that still exist:
* Locks
* `std::error::Error` (waiting for Rust 1.81)
* `std::os::raw::c_char` for FFI
* `thread_local` and `Backtrace` in `snatch`
This commit is contained in:
Kevin Reid authored and Nicolas Silva committed 2025-02-21 08:47:16 +01:00
1 parent bea4fb9e2d
commit 7bcbfe0712
57 files changed
+427 -327

No files matched your search

+7 -6
View File
@@ -1,14 +1,14 @@
use alloc::sync::Arc;
use wgt::{BufferAddress, BufferSize, Color};
use super::{Rect, RenderBundle};
use crate::{
binding_model::BindGroup,
id,
pipeline::RenderPipeline,
resource::{Buffer, QuerySet},
};
use wgt::{BufferAddress, BufferSize, Color};
use std::sync::Arc;
use super::{Rect, RenderBundle};
#[doc(hidden)]
#[derive(Clone, Copy, Debug)]
@@ -127,8 +127,9 @@ impl RenderCommand {
pub fn resolve_render_command_ids(
hub: &crate::hub::Hub,
commands: &[RenderCommand],
) -> Result<Vec<ArcRenderCommand>, super::RenderPassError> {
) -> Result<alloc::vec::Vec<ArcRenderCommand>, super::RenderPassError> {
use super::{DrawKind, PassErrorScope, RenderPassError};
use alloc::vec::Vec;
let buffers_guard = hub.buffers.read();
let bind_group_guard = hub.bind_groups.read();