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

Parámetros

nameEl nombre de una propiedad.
nameIDEl ID del nombre de la propiedad recuperada por Shader.PropertyToID.
valueThe 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.