Can I generate mipmaps for a RenderTargetIdentifier?

Hi,

I created a temporary render texture by CommandBuffer.GetTemporaryRT(rtId) and the rtId is a RenderTargetIdentifier. Then I tried to generate mipmaps from by CommandBuffer.GenerateMips but it needs a RenderTexture parameter which I don't know how to cast the rtId into it.

This is in Unity 2020.2: https://docs.unity3d.com/2020.2/Documentation/ScriptReference/Rendering.CommandBuffer.GenerateMips.html

I other versions I don't think there is a way (other than using a temp RenderTexture with autoGenerateMips).

Fine. I will found a walkaround.