Fix range bounds check being set up wrongly in shader debug. Refs #143
Fix range bounds check being set up wrongly in shader debug. Refs #143

* The offset is independent of checking the index against the number
  of elements in the view. Otherwise e.g. offset=5 and numelems=1 would
  never be in bounds.

Zorro666/renderdoc,Lssikkes/renderdoc,Velro/renderdoc,Velro/renderdoc,TurtleRockStudios/renderdoc_public,Yours3lf/renderdoc,googlestadia/renderdoc,moradin/renderdoc,Zorro666/renderdoc,cgmb/renderdoc,Yours3lf/renderdoc,Anteru/renderdoc,adrianbu/renderdoc,Lssikkes/renderdoc,moradin/renderdoc,Lssikkes/renderdoc,Yours3lf/renderdoc,moradin/renderdoc,TurtleRockStudios/renderdoc_public,cgmb/renderdoc,Anteru/renderdoc,Velro/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,baldurk/renderdoc,michaelrgb/renderdoc,adrianbu/renderdoc,michaelrgb/renderdoc,baldurk/renderdoc,adrianbu/renderdoc,googlestadia/renderdoc,moradin/renderdoc,adrianbu/renderdoc,etnlGD/renderdoc,etnlGD/renderdoc,moradin/renderdoc,Anteru/renderdoc,etnlGD/renderdoc,michaelrgb/renderdoc,googlestadia/renderdoc,Yours3lf/renderdoc,baldurk/renderdoc,baldurk/renderdoc,cgmb/renderdoc,victor-moya/renderdoc,cgmb/renderdoc,moradin/renderdoc,Anteru/renderdoc,Lssikkes/renderdoc,Velro/renderdoc,victor-moya/renderdoc,TurtleRockStudios/renderdoc_public,victor-moya/renderdoc,googlestadia/renderdoc,googlestadia/renderdoc,victor-moya/renderdoc,cgmb/renderdoc,Zorro666/renderdoc,TurtleRockStudios/renderdoc_public,Anteru/renderdoc,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,Lssikkes/renderdoc,Anteru/renderdoc,Zorro666/renderdoc,adrianbu/renderdoc,Velro/renderdoc,michaelrgb/renderdoc,Yours3lf/renderdoc,Zorro666/renderdoc,Velro/renderdoc,etnlGD/renderdoc,adrianbu/renderdoc,Yours3lf/renderdoc,Lssikkes/renderdoc,baldurk/renderdoc,victor-moya/renderdoc,victor-moya/renderdoc,michaelrgb/renderdoc,etnlGD/renderdoc,etnlGD/renderdoc,Anteru/renderdoc