⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

ComputeBuffer.SetData

void SetData(T[] data)

Upload data from the CPU to the GPU! If data.Length exceeds the buffer’s capacity, it will be clamped with a warning.

   
T[] data The data to upload.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!