Struct wgpu::PipelineCacheDescriptor
source · pub struct PipelineCacheDescriptor<'a> {
pub label: Label<'a>,
pub data: Option<&'a [u8]>,
pub fallback: bool,
}
Expand description
Describes a pipeline cache, which allows reusing compilation work between program runs.
For use with Device::create_pipeline_cache
This type is unique to the Rust API of wgpu
.
Fields§
§label: Label<'a>
Debug label of the pipeline cache. This might show up in some logs from wgpu
data: Option<&'a [u8]>
The data used to initialise the cache initialise
Safety
This data must have been provided from a previous call to
PipelineCache::get_data
, if not None
fallback: bool
Whether to create a cache without data when the provided data is invalid.
Recommended to set to true
Trait Implementations§
source§impl<'a> Clone for PipelineCacheDescriptor<'a>
impl<'a> Clone for PipelineCacheDescriptor<'a>
source§fn clone(&self) -> PipelineCacheDescriptor<'a>
fn clone(&self) -> PipelineCacheDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for PipelineCacheDescriptor<'a>
impl<'a> Send for PipelineCacheDescriptor<'a>
impl<'a> Sync for PipelineCacheDescriptor<'a>
impl<'a> Unpin for PipelineCacheDescriptor<'a>
impl<'a> UnwindSafe for PipelineCacheDescriptor<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more