Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

implict array missing initial value

Discussion in 'Shaders' started by lifeFo, Apr 8, 2019.

  1. lifeFo

    lifeFo

    Joined:
    Apr 14, 2017
    Posts:
    15
    which is declared by specifying the very first dimension to be empty or 0:
    Say by https://docs.microsoft.com/en-us/wi...rce-binding-in-hlsl#resource-types-and-arrays.
    Any konw Why this not support when i tried in computershader?
    When i paste
    Code (CSharp):
    1. Texture2D<float4> tex1[]       : register(t0)
    in computershader.
    The error An array resource may have an unbounded size, occur
    I'm try to store submesh index into different array,i do this is because i need dynamically change the length of submesh's index . if i do this in one index array will cause a lot memory arrangement problem,that's would be to complex i think.
     
    Last edited: Apr 8, 2019