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

Surface shader instancing broken on 2017.3.0b3

Discussion in '2017.3 Beta' started by multivac, Oct 5, 2017.

  1. multivac

    multivac

    Joined:
    Oct 27, 2009
    Posts:
    133
    The "#ifdef UNITY_PROCEDURAL_INSTANCING_ENABLED" method of declaring StructuredBuffers in a shader doesn't seem to work anymore.

    Using the example surface shader in documentation for Graphics.DrawMeshInstancedIndirect produces the following error:
    Code (CSharp):
    1. Shader error in 'Instanced/InstancedSurfaceShader': Unexpected identifier "StructuredBuffer". Expected one of: typedef const void inline uniform nointerpolation extern shared static volatile row_major column_major struct or a user-defined type at line 26
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi multivac,
    Thanks for reporting this issue! Could you please file a bug report with a minimal reproduction case and reply in here with the case #?
     
  3. multivac

    multivac

    Joined:
    Oct 27, 2009
    Posts:
    133
    Hi,
    reported as Case 957034
     
  4. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Thank you. I will investigate the issue