Function nstd::gl::nstd_gl_buffer_new
source · [−]#[no_mangle]
pub unsafe extern "C" fn nstd_gl_buffer_new(
bytes: &NSTDSlice,
device: NSTDGLDevice
) -> NSTDGLBufferExpand description
Creates a new GPU buffer.
Parameters:
const NSTDSlice *const bytes - The bytes to send to the GPU.
const NSTDGLDevice device - The device to create the buffer on.
Returns: NSTDGLBuffer buffer - The new GPU buffer.