544b15e8e4
The returned layer is expected to be between 0 and the depth of the surface, anything larger is off bounds.