public void AddBufferRead(ComputeBufferHandle buffer) { bufferReadList.Add(buffer); }
/// <summary> /// Specify a Compute Buffer resource to read from during the pass. /// </summary> /// <param name="input">The Compute Buffer resource to read from during the pass.</param> /// <returns>An updated resource handle to the input resource.</returns> public ComputeBufferHandle ReadComputeBuffer(ComputeBufferHandle input) { m_RenderPass.bufferReadList.Add(input); return(input); }
public void AddBufferWrite(ComputeBufferHandle buffer) { bufferWriteList.Add(buffer); refCount++; }
/// <summary> /// Specify a Compute Buffer resource to write to during the pass. /// </summary> /// <param name="input">The Compute Buffer resource to write to during the pass.</param> /// <returns>An updated resource handle to the input resource.</returns> public ComputeBufferHandle WriteComputeBuffer(ComputeBufferHandle input) { m_RenderPass.bufferWriteList.Add(input); return(input); }