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

Parámetros

name El nombre de una propiedad.
nameID El ID del nombre de la propiedad recuperada por Shader.PropertyToID.
value The ComputeBuffer to set.

Descripción

Set a ComputeBuffer property.

Adds a property to the block. If a buffer property with the given name already exists, the old value is replaced.

See Also: SetColor, SetVector, SetFloat, SetTexture.