glTexStorage3D

simultaneously specify storage for all levels of a three-dimensional, two-dimensional array or cube-map array texture

Signature

glTexStorage3D( GLenum ( target ) , GLsizei ( levels ) , GLenum ( internalformat ) , GLsizei ( width ) , GLsizei ( height ) , GLsizei ( depth ) )-> void
glTexStorage3D( target , levels , internalformat , width , height , depth )

Parameters

VariablesDescription
target
Specify the target of the operation. target must be one of GL_TEXTURE_3D , GL_PROXY_TEXTURE_3D , GL_TEXTURE_2D_ARRAY , GL_PROXY_TEXTURE_2D_ARRAY , GL_TEXTURE_CUBE_ARRAY , or GL_PROXY_TEXTURE_CUBE_ARRAY .
levels
Specify the number of texture levels.
internalformat
Specifies the sized internal format to be used to store texture image data.
width
Specifies the width of the texture, in texels.
height
Specifies the height of the texture, in texels.
depth
Specifies the depth of the texture, in texels.