To create a buffer in OpenGL, we need to write following code down:
GLuint buffer;
glCreateBuffers(1,&buffer);
glNamedBufferStorage(buffer,size,data,flags);
I know that we can create a PBO in this way:
GLuint pbo;
glCreateBuffers(1,&pbo);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER,&pbo);
glBufferData(...);//initializing buffer
my question is, can I create pbo in the first manner?