SetVectorArray
Set a vector array parameter.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetVectorArray(int, Vector4[])
Set a vector array parameter.
public void SetVectorArray(int nameID, Vector4[] values)
Parameters
Remarks
Constant buffers are shared between all kernels in a single compute shader asset. Therefore this function affects all kernels in this ComputeShader.
Additional Resources: ComputeShader.SetFloat, ComputeShader.SetFloats, ComputeShader.SetInt, ComputeShader.SetInts, ComputeShader.SetBool, ComputeShader.SetBuffer, ComputeShader.SetMatrix, ComputeShader.SetMatrixArray, ComputeShader.SetTexture, ComputeShader.SetVector.
SetVectorArray(string, Vector4[])
Set a vector array parameter.
public void SetVectorArray(string name, Vector4[] values)
Parameters
Remarks
Constant buffers are shared between all kernels in a single compute shader asset. Therefore this function affects all kernels in this ComputeShader.