[][src]Struct bedrock::resources::BufferDesc

pub struct BufferDesc { /* fields omitted */ }

Builder structure specifying the parameters of a newly created buffer object

Methods

impl BufferDesc[src]

pub fn new(byte_size: usize, usage: BufferUsage) -> Self[src]

pub fn sharing_queue_families(&mut self, indices: &[u32]) -> &mut Self[src]

A list of queue families that will access this buffer

pub fn sparse_binding_opt(&mut self, opt: BufferSparseBinding) -> &mut Self[src]

A bitmask of BufferSparseBinding specifying additional parameters of the buffer

pub fn create(&self, device: &Device) -> Result<Buffer>[src]

[feature = "Implements"] Create a new buffer object

Failure

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

Auto Trait Implementations

impl RefUnwindSafe for BufferDesc

impl !Send for BufferDesc

impl !Sync for BufferDesc

impl Unpin for BufferDesc

impl UnwindSafe for BufferDesc

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.