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§

Coordinate
Texture coordinate.
CubeMapFace
Face of a cube map.
GpuTextureKind
A kind of GPU texture.
MagnificationFilter
The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element.
MinificationFilter
The texture minifying function is used whenever the pixel being textured maps to an area greater than one texture element.
PixelElementKind
Element kind of pixel.
PixelKind
Pixel kind of GPU texture.
WrapMode
Defines a law of texture coordinate modification.

Traits§

GpuTexture
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.