Version: 2022.2
public void SetBuffer (string name, ComputeBuffer value);
public void SetBuffer (int nameID, ComputeBuffer value);
public void SetBuffer (string name, GraphicsBuffer value);
public void SetBuffer (int nameID, GraphicsBuffer value);

参数

nameID 属性名称 ID,使用 Shader.PropertyToID 获取。
name 属性名称。
value The ComputeBuffer or GraphicsBuffer value to set.

描述

Sets a named buffer value.