Calculate the size in bytes of a texture format with dimensions.
a texture format.
width in pixels.
height in pixels.
depth for 3D textures or layer count otherwise.
the size of a texture with this format and dimensions.
See Implementation
Calculate the size in bytes of a texture format with dimensions.