releaseCallback called for resources for which allocateCallback was never called
Here is a log of our application with our own allocate and release callbacks (sl::Preferences.allocateCallback, sl::Preferences.releaseCallback)
-We use dlss and frame gen. Neither are active for this.
-We use manual hooking.
-3 images are created. allocateCallback is called 3 times at the point vkGetSwapchainImagesKHR is called.
-Then, present mode is changed, necessitating recreating the swap chain. One could just recreate the swap chain too, so the present mode is not pertinent to this.
-releaseCallback is called 7 times at the point vkDestroySwapchainKHR is called: 4 times it is called with a native pointer that we never allocated on our side. 3 times it is called with pointers for the swap chain per the ones created earlier.
Is this expected? Shouldn't they match? If not, this is a leak, right?
calling vkGetSwapchainImagesKHR...
in allocateResourceCallback:
resource type: eTex2d
native pointer: 0001AA00000001AA
in allocateResourceCallback:
resource type: eTex2d
native pointer: 0001AC00000001AC
in allocateResourceCallback:
resource type: eTex2d
native pointer: 0001AE00000001AE
Created swapchain, images:
image[0]: 0001AA00000001AA
image[1]: 0001AC00000001AC
image[2]: 0001AE00000001AE\
Changing Present Mode....
calling vkDestroySwapchainKHR...
[13-16-10][streamline][info][tid:18156][92s:401ms:398us]dlss_gEntry.cpp:764[slHookVkDestroySwapchainKHR] Destroying swap-chain 0x1a100000001a1
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001A200000001A2
image allocation not found!!
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001A300000001A3
image allocation not found!!
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001A400000001A4
image allocation not found!!
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001A500000001A5
image allocation not found!!
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001AA00000001AA
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001AC00000001AC
in releaseResourceCallback:
resource type: eTex2d
native pointer: 0001AE00000001AE