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.

Members

Functions

backend
inout(shared FluidBackend) backend()

Get the backend owning this texture.

isDestroyed
bool isDestroyed()

Check if the texture has been destroyed.

markDestroyed
void markDestroyed()

Mark the texture as destroyed.

markDisowned
void markDisowned()

Mark the texture as disowned.

Static functions

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

Meta