Creates a layered buffer positioned at x, y with an optional zIndex.
x
y
zIndex
LayeredBuffer({ required this.buffer, required this.x, required this.y, this.zIndex = 0, });