emit_depthbuffer refactor part 3