Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

[Feature Request]NativeArray of Matrices for GPU instancing

Discussion in 'Graphics Experimental Previews' started by LaireonGames, Jun 24, 2020.

  1. LaireonGames

    LaireonGames

    Joined:
    Nov 16, 2013
    Posts:
    705
    Hey folks,

    Not sure where to post feature requests these days, looks like feedback website died! Anyway would love a small change to Graphics.DrawMeshInstanced where it accepts NativeArray<Matrix4x4> as one of its input parameters so I can job the updates of my trees and pass the result directly.

    Guessing it will be pretty quick copying the arrays over as needed but would be cleaner if I can work directly on the Native arrays since I will be running the job on the main thread anyway to take advantage of burst.