/// Adds a command that writes data to a buffer.
///
/// If data is larger than the buffer, only the part of data that fits is written. If the
/// buffer is larger than data, only the start of the buffer is written.
Adds a command that writes data to a buffer.
If data is larger than the buffer, only the part of data that fits is written. If the
buffer is larger than data, only the start of the buffer is written.
Adds a command that writes data to a buffer . If data is larger than the buffer only the part of data that fits is written . If the buffer is larger than data only the start of the buffer is written .
pub fn update_buffer<B, D>(self, buffer: B, data: D) -> Result<Self, UpdateBufferError>
    where
        B: vk::TypedBufferAccess<Content = D> + Send + Sync + 'static,
        D: Send + Sync + 'static,
    {
        self.map_cb(move |cb| cb.update_buffer(buffer, data))
    }
pub fn update_buffer < B , D > ( self , buffer : B , data : D ) -> Result < Self , UpdateBufferError > where B : vk :: TypedBufferAccess < Content = D > + Send + Sync + ' static , D : Send + Sync + ' static , { self . map_cb ( move | cb | cb . update_buffer ( buffer , data ) ) }
Adds a command that writes data to a buffer.
Adds a command that writes data to a buffer .
self
buffer
B
data
D