3 ms·
> So what you are saying, is that no person would ever create an array of data and expect to do anything with that data? And they would never do that in a proce
by st3fan 12y ago
> So what you are saying, is that no person would ever create an array of data and expect to do anything with that data? And they would never do that in a processing loop? Ok...
No. I'm saying the memory layout of Array<Pixel> is undefined. You cannot assume that it is a contiguous chunk of memory for example.
Therefore it is the wrong solution for a render buffer.
After reading https://developer.apple.com/swift/blog/?id=6 https://developer.apple.com/swift/blog/?id=6 I am not entirely sure about this. Can you find a more clear definition?