Skip to main content

Module gpu_texture

Module gpu_texture 

Source
Expand description

Texture is an image that used to fill faces to add details to them. It could also be used as a generic and mostly unlimited capacity storage for arbitrary data.

Structs§

GpuTextureDescriptor
Descriptor of a texture that is used to request textures from a graphics server.

Enums§

CubeMapFace
Face of a cube map.
GpuTextureKind
A kind of GPU texture.
PixelElementKind
Element kind of pixel.
PixelKind
Pixel kind of GPU texture.

Traits§

GpuTextureAsAny
A base trait that provides useful methods for trait downcasting.
GpuTextureTrait
Texture is an image that used to fill faces to add details to them. It could also be used as a generic and mostly unlimited capacity storage for arbitrary data.

Functions§

image_1d_size_bytes
Calculates size in bytes of a linear texture using the given size of the texture and its pixel kind.
image_2d_size_bytes
Calculates size in bytes of a rectangular texture using the given size of the texture and its pixel kind.
image_3d_size_bytes
Calculates size in bytes of a volume texture using the given size of the texture and its pixel kind.