Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Can I generate mipmaps for a RenderTargetIdentifier?

Discussion in 'General Graphics' started by jayatubi, May 12, 2020.

  1. jayatubi

    jayatubi

    Joined:
    Dec 9, 2013
    Posts:
    143
    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.
     
  2. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
  3. jayatubi

    jayatubi

    Joined:
    Dec 9, 2013
    Posts:
    143
    Fine. I will found a walkaround.