Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array of array in struct #241

Open
Polyrhythm opened this issue Sep 17, 2020 · 0 comments
Open

Array of array in struct #241

Polyrhythm opened this issue Sep 17, 2020 · 0 comments

Comments

@Polyrhythm
Copy link

The documentation says that multidimensional arrays are not supported but that arrays of arrays work fine.

I can't figure out how to generate the following glsl:

struct thing
{
    float[100][100][3] data;
};

Any permutation of (vector (vector ...)) or other nested array structure seems not allowed by the define-vari-struct macro. The closest I can seem to get is defining an array of another defined struct:

(v-defstruct some-data ()
  (ints (:int 1000)))

(v-defstruct outer-one ()
  (data (some-data 10)))

But this is much too unwieldy to actually be usable for my intended use case of a simple array of array of floats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant