metal: simplified makeresident because it can work on placement sparse texture now

This commit is contained in:
János Turánszki
2026-01-16 07:59:44 +01:00
parent e6ccd5c56e
commit 3374da36df
2 changed files with 2 additions and 18 deletions
+1 -17
View File
@@ -499,23 +499,7 @@ namespace wi::graphics
}
NS::SharedPtr<MTL::ResidencySet> residency_set;
void make_resident(const MTL::Texture* allocation)
{
if (allocation == nullptr)
return;
if (allocation->isSparse())
return;
std::scoped_lock locker(destroylocker);
residency_set->addAllocation(allocation);
}
void make_resident(const MTL::Buffer* allocation)
{
if (allocation == nullptr)
return;
std::scoped_lock locker(destroylocker);
residency_set->addAllocation(allocation);
}
void make_resident(const MTL::AccelerationStructure* allocation)
void make_resident(const MTL::Resource* allocation)
{
if (allocation == nullptr)
return;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 72;
// minor bug fixes, alterations, refactors, updates
const int revision = 6;
const int revision = 7;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);