How do you set a GraphicsBuffer on material with a CommandBuffer in a scriptable render pass?

How do you set a GraphicsBuffer on material with a CommandBuffer in a scriptable render pass?

Am I missing something or does it have to be a global buffer and use cmd.SetGlobalBuffer?