feat(component): add TextureCacheHasMips

This commit is contained in:
fallenoak committed 2025-10-22 01:05:07 -05:00
1 parent 32e8b11233
commit 36ce090013
2 files changed
+7

No files matched your search

+5
View File
@@ -163,3 +163,8 @@ int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t force) {
return 1;
}
int32_t TextureCacheHasMips(void* handle) {
auto entry = static_cast<CACHEENTRY*>(handle);
return entry && entry->m_data && !entry->IsMissing();
}
+2
View File
@@ -44,4 +44,6 @@ void TextureCacheDestroyTexture(void* texture);
int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t a3);
int32_t TextureCacheHasMips(void* handle);
#endif