Extent of a texture related operation.
Corresponds to WebGPU
Width of the extent
Height of the extent
The depth of the extent or the number of array layers
Calculates the physical size backing a texture of the given format and extent. This includes padding to the block width and height of the format.
This is the texture extent that you must upload at when uploading to mipmaps of compressed textures.
Calculates the maximum possible count of mipmaps.
Treats the depth as part of the mipmaps. If calculating for a 2DArray texture, which does not mipmap depth, set depth to 1.
Calculates the extent at a given mip level. Does not account for memory size being a multiple of block size.
othervalues to be equal, and is used by
!=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Auto Trait Implementations§
trueif they are equal.
Returns the argument unchanged.