Vireo  0.0
Vireo 3D Rendering Hardware Interface
Semaphore Class Referenceabstract

Detailed Description

GPU/GPU or GPU/CPU synchronization primitive. Created by Vireo.create_semaphore().

Lua full name: vireo.Semaphore

Public Member Functions

nil increment_value ()
 Increments the timeline counter by one (timeline semaphores only). More...
 
nil decrement_value ()
 Decrements the timeline counter by one (timeline semaphores only). More...
 

Properties

SemaphoreType type
 The semaphore type (BINARY or TIMELINE). (read-only)
 
integer value
 Current counter value (timeline semaphores only); assignable to set it from the CPU.
 

Member Function Documentation

nil increment_value ( )

Increments the timeline counter by one (timeline semaphores only).

nil decrement_value ( )

Decrements the timeline counter by one (timeline semaphores only).

Property Documentation

The semaphore type (BINARY or TIMELINE). (read-only)

integer value

Current counter value (timeline semaphores only); assignable to set it from the CPU.