GraphicsFence

Description

abstract class Tinman.Engine.Rendering.GraphicsFence

Derived from

Disposable abstract
IGraphicsFence

Abstract base class for IGraphicsFence implementations.

Protected / Methods

Do​Set


protected abstract method DoSet → ()

Places the fence at the end of the GPU command list.

The render command buffer should be flushed when this method is called.

Do​Wait


protected virtual method DoWait → (1)

time in : int32

The timeout in milli-seconds or 0 to only poll the state.

returns → bool

true if the GPU has reached the fence,
false if the GPU is still working towards the fence.

Waits for the GPU to reach the fence.

The default implementation busy-waits by calling DoWaitPoll repeatedly.

Do​Wait​Poll


[EmptyBody]
protected virtual method DoWaitPoll → (1)

flush in : bool

Flush batched render commands?

returns → bool

true if the GPU has reached the fence,
false if the fence has not been reached yet.

Polls the state of the placed fence.

This method is only called by DoWait for polling the fence. If possible, the DoWait method should be overridden if the native API provides a better way for waiting.