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);

Parámetros

nameEl nombre de una propiedad.
nameIDEl ID del nombre de la propiedad recuperada por Shader.PropertyToID.
valueThe ComputeBuffer or GraphicsBuffer to set.

Descripción

Set a buffer 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.