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.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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. Deleted User

    Deleted User

    Guest

    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:
    2,566
  4. Deleted User

    Deleted User

    Guest

    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:
    2,566
    Yes, it's possible. Look at the EXT version implementation, this will provide a good starting point.
     
  6. Deleted User

    Deleted User

    Guest

    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:
    2,566
  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:
    2,566
    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:
    2,566
  13. ekakiya

    ekakiya

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

    ekakiya

    Joined:
    Jul 25, 2011
    Posts:
    59
    fakestuff likes this.
  15. ekakiya

    ekakiya

    Joined:
    Jul 25, 2011
    Posts:
    59