Whats the correct way to use lines and points in threejs Webgpu

I am trying to use line and points in webgpu. However the normal syntax isn’t cutting it. I know for a fact that the syntax is different because i came on to it but now i cant find it anymore. the normal syntax i use is

pointsGeometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));
const pointsMaterial = new THREE.PointsMaterial({ color: 0xffffff });
const points = new THREE.Points(pointsGeometry, pointsMaterial);

I feel like i am missing something.