Method AddBuffer
AddBuffer(string, ComputeBuffer)
Registers a compute buffer input under the name graph input nodes will request.
public void AddBuffer(string name, ComputeBuffer buffer)
Parameters
namestringThe input name used by graph nodes or subgraph forwarding code.
bufferComputeBufferThe compute buffer to expose during execution.
Remarks
The container stores the reference only; it does not clone or take ownership of the buffer.