UmbraTextureDescriptor struct

Texture sampling parameters.

You can have more than one descriptor referring to a single texture if they all have the same colorSpace value.

Derived classes

struct Umbra::TextureDescriptor
Texture sampling parameters.

Public variables

UmbraTextureType type
What the texture is used for.
UmbraFloat2 offset
Texture coordinate offset.
UmbraFloat2 tiling
Texture coordinate scaling factor.
UmbraTextureWrapMode wrapMode
Texture wrap mode.
UmbraTextureFilterMode filterMode
Texture filter mode.
UmbraColorSpace colorSpace
Texture color space.
UmbraTextureHandle data
Handle to texture data.

Variable details

UmbraFloat2 UmbraTextureDescriptor::offset

Texture coordinate offset.

Texture coordinates are calculated as final = input * tiling + offset.

UmbraFloat2 UmbraTextureDescriptor::tiling

Texture coordinate scaling factor.

Texture coordinates are calculated as final = input * tiling + offset.