Kohi Game Engine
texture_map Struct Reference

A structure which maps a texture, use and other properties. More...

#include <resource_types.h>

Data Fields

u32 generation
 The cached generation of the assigned texture. Used to determine when to regenerate this texture map's resources when a texture's generation changes (as this could be required if, say, a texture's mip levels change). More...
 
u32 mip_levels
 Cached mip map levels. Should match assigned texture. Must always be at least 1. More...
 
texturetexture
 A pointer to a texture. More...
 
texture_filter filter_minify
 Texture filtering mode for minification. More...
 
texture_filter filter_magnify
 Texture filtering mode for magnification. More...
 
texture_repeat repeat_u
 The repeat mode on the U axis (or X, or S) More...
 
texture_repeat repeat_v
 The repeat mode on the V axis (or Y, or T) More...
 
texture_repeat repeat_w
 The repeat mode on the W axis (or Z, or U) More...
 
void * internal_data
 A pointer to internal, render API-specific data. Typically the internal sampler. More...
 

Detailed Description

A structure which maps a texture, use and other properties.

Field Documentation

◆ filter_magnify

texture_filter filter_magnify

Texture filtering mode for magnification.

◆ filter_minify

texture_filter filter_minify

Texture filtering mode for minification.

◆ generation

u32 generation

The cached generation of the assigned texture. Used to determine when to regenerate this texture map's resources when a texture's generation changes (as this could be required if, say, a texture's mip levels change).

◆ internal_data

void* internal_data

A pointer to internal, render API-specific data. Typically the internal sampler.

◆ mip_levels

u32 mip_levels

Cached mip map levels. Should match assigned texture. Must always be at least 1.

◆ repeat_u

texture_repeat repeat_u

The repeat mode on the U axis (or X, or S)

◆ repeat_v

texture_repeat repeat_v

The repeat mode on the V axis (or Y, or T)

◆ repeat_w

texture_repeat repeat_w

The repeat mode on the W axis (or Z, or U)

◆ texture

A pointer to a texture.


The documentation for this struct was generated from the following file: