SetMatrixArray
Set a Matrix array parameter.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetMatrixArray(int, Matrix4x4[])
Set a Matrix array parameter.
public void SetMatrixArray(int nameID, Matrix4x4[] 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.SetTexture, ComputeShader.SetVector, ComputeShader.SetVectorArray.
SetMatrixArray(string, Matrix4x4[])
Set a Matrix array parameter.
public void SetMatrixArray(string name, Matrix4x4[] 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.