From 3374da36df3865f7bcb917a39875149d2a30237d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Tur=C3=A1nszki?= Date: Fri, 16 Jan 2026 07:59:44 +0100 Subject: [PATCH] metal: simplified makeresident because it can work on placement sparse texture now --- WickedEngine/wiGraphicsDevice_Metal.h | 18 +----------------- WickedEngine/wiVersion.cpp | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/WickedEngine/wiGraphicsDevice_Metal.h b/WickedEngine/wiGraphicsDevice_Metal.h index 423c2c904..4dacb4c5a 100644 --- a/WickedEngine/wiGraphicsDevice_Metal.h +++ b/WickedEngine/wiGraphicsDevice_Metal.h @@ -499,23 +499,7 @@ namespace wi::graphics } NS::SharedPtr 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; diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index 256e71dcf..a6eccefe4 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -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);