module charge.gfx.sync
Graphics

Source file for syncing with the gpu.

Code Map

//! Source file for syncing with the gpu.
module charge.gfx.sync;


//! Sync object.
struct Sync
{
public:
	//! Sync with the gpu and delete sync object or timeout happens, in
	//! milliseconds.
	fn waitAndDelete(sync: Sync, timeout: i64) bool { }
	//! Delete a sync object.
	fn close() { }


public:
	//! Insert a sync object into the GPU command stream.
	static fn insert() Sync { }
}
struct Sync

Sync object.

Prefix already added.

fn insert() Sync

Insert a sync object into the GPU command stream.

fn waitAndDelete(sync: Sync, timeout: i64) bool

Sync with the gpu and delete sync object or timeout happens, in milliseconds.

fn close()

Delete a sync object.