14 typedef extent1d extent_type;
23 extent_type
const& Extent,
26 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
31 extent_type
const& Extent,
33 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
43 size_type BaseLayer, size_type MaxLayer,
44 size_type BaseFace, size_type MaxFace,
45 size_type BaseLevel, size_type MaxLevel,
46 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
51 size_type BaseLayer, size_type MaxLayer,
52 size_type BaseLevel, size_type MaxLevel);
58 extent_type
extent(size_type Level = 0)
const;
61 template <
typename genType>
62 genType
load(extent_type
const& TexelCoord, size_type Layer, size_type Level)
const;
65 template <
typename genType>
66 void store(extent_type
const& TexelCoord, size_type Layer, size_type Level, genType
const& Texel);
73 template <
typename genType>
74 void clear(genType
const& Texel);
77 template <
typename genType>
78 void clear(size_type Layer, size_type Level, genType
const& Texel);
91 size_type index_cache(size_type Layer, size_type Level)
const;
93 std::vector<cache> Caches;
97 #include "./core/texture1d_array.inl"
Genetic texture class. It can support any target.
texture1d_array()
Create an empty texture 1D array.
Namespace where all the classes and functions provided by GLI are exposed.
genType load(extent_type const &TexelCoord, size_type Layer, size_type Level) const
Fetch a texel from a texture. The texture format must be uncompressed.
extent_type extent(size_type Level=0) const
Return the width of a texture instance.
format
Texture data format.
Include to use 1d textures.
texture1d operator[](size_type Layer) const
Create a view of the texture identified by Layer in the texture array.
void clear()
Clear the entire texture storage with zeros.
void store(extent_type const &TexelCoord, size_type Layer, size_type Level, genType const &Texel)
Write a texel to a texture. The texture format must be uncompressed.