depth

var depth: Int

Frame nesting, so endFrame can tell an inner frame from the outermost one.