pub unsafe fn register_buffer(
buffer: GLuint,
flags: u32,
) -> Result<GraphicsResource>Expand description
Register a GL buffer object (VBO / SSBO / …) for CUDA access.
§Safety
buffer must be a live GL buffer in a GL context current on the
calling thread. The buffer must outlive the returned resource.