Search Unity

DrawMeshInstancedIndirect with HDRP and IL2CPP

Discussion in 'High Definition Render Pipeline' started by GilCat, Feb 3, 2020.

  1. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    I'm using DMII with HDRP for batch rendering a large amount of objects and everything seems to be working fine until I've made a build using IL2CPP where nothing shows on screen and no error is to be found.
    Editor and Mono build both for Windows as Mac work fine.

    Is there any consideration that I should know about this?

    PD: I'm using custom Lit shader with added buffers for DMII.

    Thanks
     
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    It seems like it's not a problem with DMII but rather a problem of stripping when using IL2CPP.
    Turns out that one of the buffers i use was being stripped.
    I got it fixed now by injecting those types with Cecil.