Expand description
Textures and texture samplers.
Structs§
- Atlas
- Sampler
Clamp - A texture sampler that clamps out-of-bounds coordinates to the nearest valid coordinate in both dimensions.
- Sampler
Once - A texture sampler that assumes all texture coordinates are within bounds.
- Sampler
Repeat Pot - A texture sampler that repeats the texture infinitely modulo the texture
dimensions. For performance reasons,
SamplerRepeatPotonly accepts textures with dimensions that are powers of two. - Tex
- Basis of the texture space.
- Texture
- A texture type. Can contain either owned or borrowed pixel data.
Enums§
Functions§
- cube_
map - Returns a texture coordinate in a cube map.
- uv
- Returns a new texture coordinate with components
uandv.
Type Aliases§
- TexCoord
- Texture coordinate vector. Texture coordinates can be either absolute, in range (0, 0)..(w, h) for some texture with dimensions w and h, or relative, in range (0, 0)..(1, 1), in which case they are independent of the actual dimensions of the texture.