The subpass depth is used for drawing the texture to the parent pass. So it needs a depth > all of the clips contained within the subpass. Also correct the way we're assigning the depth value in shaders.