"tried to bind uniform to an invalid index (index: {}, valid range: {}..{})",
"tried to bind uniform to an invalid index (index: {:?}, valid range: {:?})",
index.0,
index,
self.index_range().start.0,
self.index_range(),
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.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);