Click or drag to resize
Ab4d.SharpEngine logo

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.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public 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