16 typedef extent1d extent_type;
24 extent_type
const& Extent,
26 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
31 extent_type
const& Extent,
32 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
42 size_type BaseLayer, size_type MaxLayer,
43 size_type BaseFace, size_type MaxFace,
44 size_type BaseLevel, size_type MaxLevel,
45 swizzles_type
const& Swizzles = swizzles_type(SWIZZLE_RED, SWIZZLE_GREEN, SWIZZLE_BLUE, SWIZZLE_ALPHA));
50 size_type BaseLevel, size_type MaxLevel);
56 extent_type
extent(size_type Level = 0)
const;
59 template <
typename genType>
60 genType
load(extent_type
const& TexelCoord, size_type Level)
const;
63 template <
typename genType>
64 void store(extent_type
const& TexelCoord, size_type Level, genType
const& Texel);
71 template <
typename genType>
72 void clear(genType
const& Texel);
75 template <
typename genType>
76 void clear(size_type Level, genType
const& Texel);
89 size_type index_cache(size_type Level)
const;
91 std::vector<cache> Caches;
95 #include "./core/texture1d.inl"
Genetic texture class. It can support any target.
genType load(extent_type const &TexelCoord, size_type Level) const
Fetch a texel from a texture. The texture format must be uncompressed.
void store(extent_type const &TexelCoord, size_type Level, genType const &Texel)
Write a texel to a texture. The texture format must be uncompressed.
Namespace where all the classes and functions provided by GLI are exposed.
image operator[](size_type Level) const
Create a view of the image identified by Level in the mipmap chain of the texture.
Include to compute offset in a texture storage memory.
void clear()
Clear the entire texture storage with zeros.
texture1d()
Create an empty texture 1D.
format
Texture data format.
Image, representation for a single texture level.
Include to use images, a representation of a single texture level.
Include to use generic textures which can represent any texture target but they don't have target spe...
extent_type extent(size_type Level=0) const
Return the width of a texture instance.