Skip to content

API Reference / @gtkx/gl / textureStorage2D

Function: textureStorage2D() ​

textureStorage2D(texture, levels, internalformat, width, height): void

Defined in: packages/gl/src/generated/commands.ts:7352

void glTextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)

Provided by GL_VERSION_4_5. Registry note: Reuse GL_ARB_direct_state_access Also provided by the GL_ARB_direct_state_access extension. GL_ARB_direct_state_access note: Texture object functions.

Parameters ​

texture ​

number

GLuint, object class texture

levels ​

number

GLsizei

internalformat ​

number

SizedInternalFormat

width ​

number

GLsizei

height ​

number

GLsizei

Returns ​

void