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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved Compatibility buffer newbie questions

Discussion in 'General Graphics' started by CinnamonCereals, Jun 6, 2022.

  1. CinnamonCereals

    CinnamonCereals

    Joined:
    Jan 19, 2022
    Posts:
    23
    Hi! I have a couple of what seem to me like newbie questions, doing my best to understand.

    In the docs it's specified that a minimum of 4 buffers per stage are support on android (opengles 3.1+)
    • Is the limit set per shader or per material instance (all instances added together can have more than 4 but not individually)?
    • If i have 4 buffers that are declared in the whole shader and is only used in the vertex and not in the fragment, the buffers used count as 4 per stage and not 8?
    • I'm coding in a generated shader graph shader. It makes multiple passes and all passes have the same buffer (read only) included. Is this buffer a shared one or each pass makes a copy of it? In the case of 8 passes do the compute buffers count as 8 per stage?
    • Is there a limit of compute shaders you can run on mobile in one frame? (where supported)
    • Is there a size limit of data a buffer can hold on mobile?
     
  2. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    692
  3. CinnamonCereals

    CinnamonCereals

    Joined:
    Jan 19, 2022
    Posts:
    23
    Great answer! Thank you!
     
    joshuacwilde likes this.