A handle to a GPU-accessible buffer.

Methods

@:has_untypeddestroy():Void

Destroy the buffer.

Using the instance after this will throw a UseAfterDestroyException exception.

Throws:

UseAfterDestroyException

If the instance was already destroyed.

@:has_untypedunmap():Void

Flushes any pending write operations and unmaps the buffer from host memory.

Throws:

UseAfterDestroyException

If the instance was already destroyed.