Skip to main content
4 events
when toggle format what by license comment
Jun 16, 2020 at 10:15 history edited CommunityBot
Commonmark migration
Aug 17, 2015 at 2:31 comment added Andon M. Coleman @mgoetschius: Ah, gotcha. The thing is, that's a const-index-expression It's not dynamic at all, the compiler could easily unroll this because the number of iterations is known at compile-time.
Aug 17, 2015 at 2:11 comment added mgoetschius Thanks for the reply Andon. The struct my code above is from my fragment shader. On the C++ side, I do have the padding you mention. Also, I've tried adding in the padding in the fragment shader too. I don't think this is an alignment problem because it works when accessing the array with constants. I think the problem is with dynamically indexing the array positions.
Aug 16, 2015 at 19:39 history answered Andon M. Coleman CC BY-SA 3.0