Add GfxResource abstraction.