g buffer work