14 typedef extent2d 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 BaseFace, size_type MaxFace,
53 size_type BaseLevel, size_type MaxLevel);
59 extent_type
extent(size_type Level = 0)
const;
62 template <
typename genType>
63 genType
load(extent_type
const & TexelCoord, size_type Layer, texture_cube_array::size_type Face, size_type Level)
const;
66 template <
typename genType>
67 void store(extent_type
const & TexelCoord, size_type Layer, size_type Face, size_type Level, genType
const & Texel);
74 template <
typename genType>
75 void clear(genType
const & Texel);
78 template <
typename genType>
79 void clear(size_type Layer, size_type Face, size_type Level, genType
const & Texel);
92 size_type index_cache(size_type Layer, size_type Face, size_type Level)
const;
94 std::vector<cache> Caches;
98 #include "./core/texture_cube_array.inl"
void clear()
Clear the entire texture storage with zeros.
Genetic texture class. It can support any target.
texture_cube_array()
Create an empty texture cube array.
Namespace where all the classes and functions provided by GLI are exposed.
extent_type extent(size_type Level=0) const
Return the dimensions of a texture instance: width and height where both should be equal...
format
Texture data format.
genType load(extent_type const &TexelCoord, size_type Layer, texture_cube_array::size_type Face, size_type Level) const
Fetch a texel from a texture. The texture format must be uncompressed.
texture_cube operator[](size_type Layer) const
Create a view of the texture identified by Layer in the texture array.
void store(extent_type const &TexelCoord, size_type Layer, size_type Face, size_type Level, genType const &Texel)
Write a texel to a texture. The texture format must be uncompressed.
Include to use cube map textures.