SetVector
Set a vector parameter.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetVector(int, Vector4)
Set a vector parameter.
public void SetVector(int nameID, Vector4 val)
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.SetVectorArray.
SetVector(string, Vector4)
Set a vector parameter.
public void SetVector(string name, Vector4 val)
Parameters
Remarks
Constant buffers are shared between all kernels in a single compute shader asset. Therefore this function affects all kernels in this ComputeShader.