Module luminance::texture [] [src]

This module provides texture features.

Structs

Cubemap

Cubemap dimension.

Dim1

1D dimension.

Dim2

2D dimension.

Dim3

3D dimension.

Flat

Flat texture hint.

Layered

Layered texture hint.

Sampler

A Sampler object gives hint on how a Texture should be sampled.

Texture

Texture.

TextureProxy

An opaque type representing any texture.

Unit

Texture unit.

Enums

CubeFace

Faces of a cubemap.

DepthComparison

Depth comparison to perform while depth test. a is the incoming fragment’s depth and b is the fragment’s depth that is already stored.

Dim

Dimension of a texture.

Filter

Minification and magnification filter.

Layering

Texture layering. If a texture is layered, it has an extra coordinate to access the layer.

Wrap

How to wrap texture coordinates while sampling textures?

Traits

Dimensionable

Reify a type into a Dim.

HasTexture

Trait to implement to provide texture features.

Layerable

Trait used to reify a type into a Layering.

Functions

dim_capacity

Capacity of the dimension, which is the product of the width, height and depth.