 |
GpuStagingBufferWriteToGpu Method |
WriteToGpu method fills the command buffer with buffer copy commands, submits it to the queue and waits until all the commands are executed (when waitUntilFinished parameter is true).
Note that when waitUntilFinished is false, user must not add new data to this GpuStagingBuffer before the command has finished executing
(user can call
WaitUntilAllDataWritten to make sure that all the commands have finished executing).
Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic void WriteToGpu(
bool waitUntilFinished = true,
bool beginEndCommandBuffer = true
)
Parameters
- waitUntilFinished Boolean (Optional)
- when true (by default) then this method waits until all the data are written to the GPU (until the queue finishes processing the command buffer)
- beginEndCommandBuffer Boolean (Optional)
- when false (true by default) and when waitUntilFinished is false, then the BeginCommandBuffer and EndCommandBuffer are not called. When waitUntilFinished is true, then this property has no effect.
See Also