[−][src]Struct bedrock::resources::BufferDesc
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]
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>,