TextureCache.find

Finds the slot of a given texture within the cache.

class TextureCache
@nogc
ptrdiff_t
find

Parameters

texture Texture

The texture to look for.

Return Value

Type: ptrdiff_t

A non-negative number on success, -1 if the texture was not found.

Meta