pub fn empty(
        device: Arc<Device>,
        usage: vk::BufferUsageFlags,
        properties: vk::MemoryPropertyFlags,
    ) -> Result<Self> {
        Ok(Self {
            raw: vk::Buffer::null(),
            allocation: Allocation::null(),
            usage,
            properties,
            device,
        })
    }
/// Create a new buffer with no memory allocated.
Create a new buffer with no memory allocated.
Create a new buffer with no memory allocated .
pub fn empty(
        device: Arc<Device>,
        usage: vk::BufferUsageFlags,
        properties: vk::MemoryPropertyFlags,
    ) -> Result<Self> {
        Ok(Self {
            raw: vk::Buffer::null(),
            allocation: Allocation::null(),
            usage,
            properties,
            device,
        })
    }
pub fn empty ( device : Arc < Device > , usage : vk :: BufferUsageFlags , properties : vk :: MemoryPropertyFlags , ) -> Result < Self > { Ok ( Self { raw : vk :: Buffer :: null ( ) , allocation : Allocation :: null ( ) , usage , properties , device , } ) }
Create a new buffer with no memory allocated.
Create a new buffer with no memory allocated .
device
Arc<Device>
usage
vk::BufferUsageFlags
properties
vk::MemoryPropertyFlags