[−][src]Struct bedrock::PipelineCache
Opaque handle to a pipeline cache object
Methods
impl PipelineCache
[src]
Following methods are enabled with [feature = "Implements"]
pub fn new<Data: AsRef<[u8]> + ?Sized>(
device: &Device,
initial: &Data
) -> Result<Self>
[src]
device: &Device,
initial: &Data
) -> Result<Self>
Creates a new pipeline cache
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn data(&self) -> Result<Vec<u8>>
[src]
Get the data store from a pipeline cache
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn merge_into(&self, src: &[&PipelineCache]) -> Result<()>
[src]
Combine the data stores of pipeline caches into self
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
Trait Implementations
impl DeviceChild for PipelineCache
[src]
impl Drop for PipelineCache
[src]
impl VkHandle for PipelineCache
[src]
type Handle = VkPipelineCache
fn native_ptr(&self) -> VkPipelineCache
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PipelineCache
impl !Send for PipelineCache
impl !Sync for PipelineCache
impl Unpin for PipelineCache
impl !UnwindSafe for PipelineCache
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,