WgpuWrapper.
This commit is contained in:
parent
617ce936af
commit
5571acd23c
@ -10,6 +10,7 @@ use bevy_ecs::{
|
|||||||
};
|
};
|
||||||
use bevy_platform::hash::FixedHasher;
|
use bevy_platform::hash::FixedHasher;
|
||||||
use bevy_render::{render_resource::PipelineCache, renderer::RenderDevice, Extract, Render};
|
use bevy_render::{render_resource::PipelineCache, renderer::RenderDevice, Extract, Render};
|
||||||
|
use bevy_utils::WgpuWrapper;
|
||||||
use core::hash::BuildHasher;
|
use core::hash::BuildHasher;
|
||||||
use std::{
|
use std::{
|
||||||
fs,
|
fs,
|
||||||
@ -23,7 +24,6 @@ use std::{
|
|||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
use tracing::{debug, warn};
|
use tracing::{debug, warn};
|
||||||
use wgpu::{hal::PipelineCacheError, Backend, PipelineCacheDescriptor};
|
use wgpu::{hal::PipelineCacheError, Backend, PipelineCacheDescriptor};
|
||||||
use bevy_utils::WgpuWrapper;
|
|
||||||
|
|
||||||
/// Plugin for managing [`wgpu::PipelineCache`] resources across application runs.
|
/// Plugin for managing [`wgpu::PipelineCache`] resources across application runs.
|
||||||
///
|
///
|
||||||
|
@ -907,7 +907,7 @@ impl PipelineCache {
|
|||||||
// TODO: Should this be the same as the vertex compilation options?
|
// TODO: Should this be the same as the vertex compilation options?
|
||||||
compilation_options,
|
compilation_options,
|
||||||
}),
|
}),
|
||||||
cache: cache.as_deref(),
|
cache: cache.as_deref().map(|v| &**v),
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(Pipeline::RenderPipeline(
|
Ok(Pipeline::RenderPipeline(
|
||||||
@ -968,7 +968,7 @@ impl PipelineCache {
|
|||||||
zero_initialize_workgroup_memory: descriptor
|
zero_initialize_workgroup_memory: descriptor
|
||||||
.zero_initialize_workgroup_memory,
|
.zero_initialize_workgroup_memory,
|
||||||
},
|
},
|
||||||
cache: cache.as_deref(),
|
cache: cache.as_deref().map(|v| &**v),
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(Pipeline::ComputePipeline(
|
Ok(Pipeline::ComputePipeline(
|
||||||
|
Loading…
Reference in New Issue
Block a user