Make GPU X buffer ops platform-agnostic