Declares a new PixelBuffer of size bytes to contain arrays of pixels.
Once declared, data can be set using set_data or by mapping it into the application's address space using map.
If data isn't null then size bytes will be read from data
and immediately copied into the new buffer.
| context |
A Context |
| size |
The number of bytes to allocate for the pixel data. |
| data |
An optional pointer to vertex data to upload immediately |
|
a newly allocated PixelBuffer |