Skip to content

CF_TextureType

Category: graphics
GitHub: cute_graphics.h


The shape of a texture: 2D, cube map, 3D, or 2D array.

Values

Enum Description
CF_TEXTURE_TYPE_2D An ordinary 2D texture (the default).
CF_TEXTURE_TYPE_CUBE A cube map: six square 2D faces, sampled by direction with samplerCube.
CF_TEXTURE_TYPE_3D A 3D (volume) texture, sampled with sampler3D.
CF_TEXTURE_TYPE_2D_ARRAY An array of 2D layers, sampled with sampler2DArray.

Remarks

Matches the sampler type in the shader: sampler2D, samplerCube, sampler3D, or sampler2DArray. See CF_TextureParams and cf_texture_update_layer.

cf_texture_update_layer
cf_texture_type_to_string
CF_TextureParams
cf_make_texture