getWebGLTextureFormat

View source getWebGLTextureFormat ( format: number ) : WebGLTextureFormat | undefined

Returns a WebGL texture format configuration based on a custom texture format enum.

Parameters

Name Description Default
format

The custom TextureFormat enum value.

—

Returns

The corresponding texture format, or undefined if not supported.