Using a stride in buffer objects

Suppose I have a single OpenGL VBO containing all my geometry data (vertices, normals, tangents etc).

When using this buffer with OpenGL shaders one can use strides with glVertexAttribPointer function.

OptiX buffers has this kind of support or do I have to create a single OptiX buffer and take care of accessing the appropriate data myself?

I had forgotten about the option to set a user format to a buffer. So I can create a structure that represent my vertex data and set this structure as the format for my buffer so when accessing the buffer within OptiX programs I can simply use the members of my strucuture to get the desired data.