Search Unity

Native Metal Shaders

Discussion in 'Shaders' started by johnfrog, Sep 5, 2018.

  1. johnfrog

    johnfrog

    Joined:
    May 7, 2015
    Posts:
    13
    Hi,

    I was wondering if anybody has had any luck passing a Compute Buffer into a native Metal shader?

    I have been following an example commit from here by Alexey
    https://bitbucket.org/Unity-Technol...mits/520af5d726ec9888523ffc058c64f0f2ab49720e

    However whenever I try to attach a simple compute buffer it just will not bind. I've attached a simple demo scene to test with. There's an example of standard CG way and a native Metal implementation of the same shader.

    If Alexey or Mantas have any ideas to get this running that would be great! :D

    Also, provided we can get this running, can it be extended out to Compute Shaders?

    Cheers,
    John
     

    Attached Files:

    andrii-shpak-st and aakashs like this.
  2. martonekler

    martonekler

    Unity Technologies

    Joined:
    Feb 5, 2015
    Posts:
    31
    Hi John,

    we are going to look into this issue next week.

    Cheers
    Marton
     
    johnfrog likes this.
  3. johnfrog

    johnfrog

    Joined:
    May 7, 2015
    Posts:
    13
    Hi Marton, is there any update on this?
    Cheers
    John
     
    Last edited: Sep 14, 2018
  4. martonekler

    martonekler

    Unity Technologies

    Joined:
    Feb 5, 2015
    Posts:
    31
    Hi John,

    we are working on this and hopefully have some updates soon

    Marton