Apply shared buffers API to RGB buffers