What does glTexStorage do?

后端 未结 2 1365
萌比男神i
萌比男神i 2020-12-29 08:50

The documentation indicates that this \"allocates\" storage for a texture and its levels. The pseudocode provided seems to indicate that this is for the mipmap levels.

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 09:21

    Before calling glGenerateMipmap​, the base mipmap level must be established. (either with mutable or immutable storage).so...,you can using glTexImage2D+glGenerateMipmap only,more simple!

提交回复
热议问题