WgpuWrapper.

This commit is contained in:
Charlotte McElwain 2025-06-25 01:16:58 -07:00
parent 617ce936af
commit 5571acd23c
2 changed files with 3 additions and 3 deletions

View File

@ -10,6 +10,7 @@ use bevy_ecs::{
};
use bevy_platform::hash::FixedHasher;
use bevy_render::{render_resource::PipelineCache, renderer::RenderDevice, Extract, Render};
use bevy_utils::WgpuWrapper;
use core::hash::BuildHasher;
use std::{
fs,
@ -23,7 +24,6 @@ use std::{
use thiserror::Error;
use tracing::{debug, warn};
use wgpu::{hal::PipelineCacheError, Backend, PipelineCacheDescriptor};
use bevy_utils::WgpuWrapper;
/// Plugin for managing [`wgpu::PipelineCache`] resources across application runs.
///

View File

@ -907,7 +907,7 @@ impl PipelineCache {
// TODO: Should this be the same as the vertex compilation options?
compilation_options,
}),
cache: cache.as_deref(),
cache: cache.as_deref().map(|v| &**v),
};
Ok(Pipeline::RenderPipeline(
@ -968,7 +968,7 @@ impl PipelineCache {
zero_initialize_workgroup_memory: descriptor
.zero_initialize_workgroup_memory,
},
cache: cache.as_deref(),
cache: cache.as_deref().map(|v| &**v),
};
Ok(Pipeline::ComputePipeline(