Describes a new AttributeBuffer of size
bytes to contain arrays of
vertex attribute data and also uploads size
bytes read from data
to the new buffer.
You should never pass a null data pointer.
<note>This function does not report out-of-memory errors back to the caller by returning null and so you can assume this function always succeeds.</note>
<note>In the unlikely case that there is an out of memory problem then Cogl will abort the application with a message. If your application needs to gracefully handle out-of-memory errors then you can use AttributeBuffer.with_size and then explicitly catch errors with set_data or map.</note>
bytes |
The number of bytes to allocate for vertex attribute data. |
context |
A Context |
data |
An optional pointer to vertex data to upload immediately. |
A newly allocated AttributeBuffer (never null) |