"tried to bind uniform to an invalid index (index: {}, valid range: {}..{})",
index.0,
self.index_range().start.0,
self.index_range().end.0
"tried to bind uniform to an invalid index (index: {:?}, valid range: {:?})",
index,
self.index_range(),
);
assert!(self.index_range().end.0asusize>=self.len()+index.0asusize,"tried to bind a uniform that would overflow the uniform buffer. index was {}, size was {} max is {}",index.0,self.len(),self.index_range().end.0);
assert!(self.index_range().end.0asusize>=self.len()+index.0asusize,"tried to bind a uniform that would overflow the uniform buffer. index was {:?}, size was {} max is {:?}",index,self.len(),self.index_range().end);