pub fn pad_uniform_size(&self, size: u64) -> u64 {
        let min = self.device.limits().min_uniform_buffer_offset_alignment as u64;
        if min > 0 {
            (size + min - 1) & !(min - 1)
        } else {
            size
        }
    }
/// Helper function to pad uniform sizes to the next multiple of the minimum uniform buffer alignment.
Helper function to pad uniform sizes to the next multiple of the minimum uniform buffer alignment.
Helper function to pad uniform sizes to the next multiple of the minimum uniform buffer alignment .
pub fn pad_uniform_size(&self, size: u64) -> u64 {
        let min = self.device.limits().min_uniform_buffer_offset_alignment as u64;
        if min > 0 {
            (size + min - 1) & !(min - 1)
        } else {
            size
        }
    }
pub fn pad_uniform_size ( & self , size : u64 ) -> u64 { let min = self . device . limits ( ) . min_uniform_buffer_offset_alignment as u64 ; if min > 0 { ( size + min - 1 ) & ! ( min - 1 ) } else { size } }
Helper function to pad uniform sizes to the next multiple of the minimum uniform buffer alignment.
Helper function to pad uniform sizes to the next multiple of the minimum uniform buffer alignment .
&self
size
u64
&self
size
u64