I want to set the initial data of a texture in an OpenGL 4.5 program (using OpenTK.Next and .NET), utilizing the new Direct State Access methods.
However, I cannot find a DSA version of
glTexImage2D. There are methods like
glTextureSubImage2D which accept a texture object ID, but using those to set the intial data fails with InvalidOperation.
I'm pretty sure there should be such a method... comparing textures to array buffers, array buffers do have a DSA version to set their initial data,
According to the documentation, the DSA methods are all named
...Texture... unlike the "old" methods which are named
...Tex..., but searching through them didn't reveal me something like
Anyone knows if there even is a DSA method to set the initial texture data?