metal: simplified makeresident because it can work on placement sparse texture now
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user