Added option for creating barrier on copyfrom tensor

This commit is contained in:
Alejandro Saucedo 2020-08-29 15:49:43 +01:00
parent a2efc441db
commit 2298159586
4 changed files with 20 additions and 38 deletions

View file

@ -96,8 +96,12 @@ class Tensor
* Records a copy from the memory of the tensor provided to the current
* thensor. This is intended to pass memory into a processing, to perform
* a staging buffer transfer, or to gather output (between others).
*
* @param copyFromTensor Tensor to copy the data from
* @param createBarrier Whether to create a barrier that ensures the data is copied before further operations. Default is true.
*/
void recordCopyFrom(std::shared_ptr<Tensor> copyFromTensor);
void recordCopyFrom(std::shared_ptr<Tensor> copyFromTensor,
bool createBarrier = true);
/**
* Records the buffer memory barrier into the command buffer which