SetInt
Set an integer parameter.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetInt(int, int)
Set an integer parameter.
public void SetInt(int nameID, int 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.SetInts, ComputeShader.SetBool, ComputeShader.SetBuffer, ComputeShader.SetMatrix, ComputeShader.SetMatrixArray, ComputeShader.SetTexture, ComputeShader.SetVector, ComputeShader.SetVectorArray.
SetInt(string, int)
Set an integer parameter.
public void SetInt(string name, int 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.