I am using ComPtr (Microsoft :: WRL) to manage some DirectX11 resources. How can it be released manually?
The method "ReleaseAndGetAddressOf", if I understand correctly, only frees the pointer, not the resource itself (which is returned), and I'm not sure about the "Reset" method.
The only alternatives I could think of are manually calling the pointer destructor, or after getting the raw pointer from "ReleaseAndGetAddressOf" calling "Release" on it, which I would like to avoid.
キ キ ジ キ
source share