CommandBuffer.SetGlobalConstantBuffer

Cambiar al Manual
public void SetGlobalConstantBuffer (ComputeBuffer buffer, string name, int offset, int size);
public void SetGlobalConstantBuffer (ComputeBuffer buffer, int nameID, int offset, int size);
public void SetGlobalConstantBuffer (GraphicsBuffer buffer, string name, int offset, int size);
public void SetGlobalConstantBuffer (GraphicsBuffer buffer, int nameID, int offset, int size);

Parámetros

nameIDThe name ID of the constant buffer retrieved by Shader.PropertyToID.
nameThe name of the constant buffer to override.
bufferThe buffer to bind.
offsetOffset from the start of the buffer in bytes.
sizeSize in bytes of the area to bind.

Descripción

Add a command to bind a global constant buffer.