Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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.