feat(component): add TextureCacheHasMips

This commit is contained in:
fallenoak 2025-10-22 01:05:07 -05:00
parent 32e8b11233
commit 36ce090013
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 0 deletions

View File

@ -163,3 +163,8 @@ int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t force) {
return 1; return 1;
} }
int32_t TextureCacheHasMips(void* handle) {
auto entry = static_cast<CACHEENTRY*>(handle);
return entry && entry->m_data && !entry->IsMissing();
}

View File

@ -44,4 +44,6 @@ void TextureCacheDestroyTexture(void* texture);
int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t a3); int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t a3);
int32_t TextureCacheHasMips(void* handle);
#endif #endif