ドキュメント

Unity Engine

Unity Engine

SetMatrixArray

Set a Matrix array parameter.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

SetMatrixArray(int, Matrix4x4[])

Set a Matrix array parameter.
public void SetMatrixArray(int nameID, Matrix4x4[] values)

Parameters

nameID

Property name ID, use Shader.PropertyToID to get it.

Value to set.

Remarks

Constant buffers are shared between all kernels in a single compute shader asset. Therefore this function affects all kernels in this ComputeShader.

SetMatrixArray(string, Matrix4x4[])

Set a Matrix array parameter.
public void SetMatrixArray(string name, Matrix4x4[] values)

Parameters

name

Variable name in shader code.

Value to set.

Remarks

Constant buffers are shared between all kernels in a single compute shader asset. Therefore this function affects all kernels in this ComputeShader.