Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[Feature Request]NativeArray of Matrices for GPU instancing

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

  1. LaireonGames


    Nov 16, 2013
    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.