Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Pixel Local Storage and Frame Buffer Fetch on Mobile Devices

Discussion in 'General Graphics' started by ViniciusGraciano, Dec 27, 2018.

  1. ViniciusGraciano

    ViniciusGraciano

    Joined:
    May 19, 2013
    Posts:
    13
    Main question: does Unity have any support for pixel local storage on mobile devices? If yes, then how do we use it?

    Second question: I know that we can fetch colors from the framebuffer (see this code by aras). But can we fetch from the depth buffer as well? (e.g., see this ARM extension).

    Thank you very much for your time!
     
    ekakiya, okluskyond, zeros_ and 2 others like this.
  2. xiaoluna

    xiaoluna

    Joined:
    Oct 20, 2019
    Posts:
    4
    encounterd with the same issue here. did u have the solution???:eek:o_O:rolleyes::p
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,804
  4. xiaoluna

    xiaoluna

    Joined:
    Oct 20, 2019
    Posts:
    4
    Hi Thanks for answering.

    Is that possible if I add the extension to support fetch depth myself? Since we do have the source code of Unity Engine.
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,804
    Yes, it's possible. Look at the EXT version implementation, this will provide a good starting point.
     
  6. xiaoluna

    xiaoluna

    Joined:
    Oct 20, 2019
    Posts:
    4
    Thanks!:)
     
  7. wechat_os_Qy0-s70NqEdyJq4fbDmCxv0vo

    wechat_os_Qy0-s70NqEdyJq4fbDmCxv0vo

    Joined:
    Jun 5, 2019
    Posts:
    2
    The Mali GPU only can keep one RT on tile if use EXT_shader_framebuffer_fetch

    If we want to keep 4 RTs gbuffer on tile, how can we do this ?

    PS: We are develop on android gles3
     
  8. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,804
  9. wechat_os_Qy0-s70NqEdyJq4fbDmCxv0vo

    wechat_os_Qy0-s70NqEdyJq4fbDmCxv0vo

    Joined:
    Jun 5, 2019
    Posts:
    2
    What about GL_EXT_shader_pixel_local_storage ?

    Can we use this and what should add in the shader files ?
     
  10. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,804
    No, Unity only supports EXT_shader_framebuffer_fetch.
     
  11. fakestuff

    fakestuff

    Joined:
    Mar 30, 2015
    Posts:
    6
    Hello, we are trying to implement OIT for mobile. To make the per-pixel linked list implemented efficiently, perpixel local storage(gl)/ image block(metal, https://developer.apple.com/videos/play/tech-talks/603/) access seems to be critical. I wonder if unity has plan to support these features in near future.
     
  12. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,804
  13. ekakiya

    ekakiya

    Joined:
    Jul 25, 2011
    Posts:
    38
    fakestuff likes this.
  14. ekakiya

    ekakiya

    Joined:
    Jul 25, 2011
    Posts:
    38
    fakestuff likes this.
unityunity