public void DisposeTex(ref ICustomTexture texture) { if (texture == null) { return; } MyCustomTexture textureInternal = (MyCustomTexture)texture; if (m_isDeviceInit) { textureInternal.OnDeviceEnd(); } m_objectsPool.Deallocate(textureInternal); }
public void Init(MyCustomTexture owner, Format format) { m_owner = owner; m_format = format; }