pub unsafe fn named_buffer_data_u8_slice(
buffer: Buffer,
data: &[u8],
usage: BufferUsage,
)Expand description
creates and initializes a buffer object’s data store.
§Parameters
buffer: The buffer object to initialize.data: The data that will be copied into the buffer object’s data store for initialization.usage: The usage pattern of the buffer object’s data store.
§Notes
Wraps ffi::glNamedBufferData.