Convert camera raycast method to operate on the GPU.