TextureTombstone

Tombstones are used to ensure textures are freed on the same thread they have been created on.

Tombstones are kept alive until the texture is explicitly destroyed and then finalized (disowned) from the main thread by a periodically-running TextureReaper. This is necessary to make Fluid safe in multithreaded environments.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

backend
inout(shared FluidBackend) backend()

Get the backend owning this texture.

isDestroyed
bool isDestroyed()

Check if a request for destruction has been made for the texture.

markDestroyed
void markDestroyed()

Mark the texture as destroyed.

Static functions

make
TextureTombstone* make(FluidBackend backend)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta