[][src]Struct bedrock::PipelineCache

pub struct 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]

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

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.