Search Unity

why I can't disable depth and stencil texture on ios devices

Discussion in 'General Graphics' started by meichen8050753, Jul 15, 2020.

  1. meichen8050753

    meichen8050753

    Joined:
    Jan 16, 2017
    Posts:
    37
    I already disable Depth and Stencil at resolution and presentation, but it seemed not work.
    1.png 2.png
     
  2. Jonas_Sid

    Jonas_Sid

    Mobile Graphics Developer Unity Technologies

    Joined:
    May 13, 2015
    Posts:
    44
    Are you creating this temporary RenderTexture yourself? If so, what is the depthBufferBits value of the descriptor?
     
  3. meichen8050753

    meichen8050753

    Joined:
    Jan 16, 2017
    Posts:
    37
    I'm not create it.
    1.create a new unity project
    2.disable depth and stencil
    3.export to xcode project and run.
    4.capture a gpu frame and see the graph, you can find the depth and stencil texture
     
    Last edited: Jul 17, 2020
  4. Jonas_Sid

    Jonas_Sid

    Mobile Graphics Developer Unity Technologies

    Joined:
    May 13, 2015
    Posts:
    44
    Just tried doing that on a new project - the RenderTarget is color-only and the setting works as intended. Though it seems in your case, from looking at the xcode's render graph, that depth/stencil is being used in the following render passes (which is pretty usual practice when using Post-Processing) which makes sense why depth/stencil is still created even with the setting enabled
     
  5. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    731
    @Jonas_Sid I am also seeing the depth and stencil in my iOS project. Even though I have the setting turned off. We are not doing any post processing. Any ideas?