CommandBuffer.SetGlobalConstantBuffer

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

Parameters

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.

Description

Add a command to bind a global constant buffer.