6 #include "./core/storage.hpp"
19 typedef size_t size_type;
21 typedef storage::extent_type extent_type;
22 typedef storage::data_type data_type;
30 extent_type
const& Extent);
44 format_type
format()
const;
47 extent_type
extent()
const;
50 size_type
size()
const;
54 template <
typename genType>
55 size_type
size()
const;
61 void const*
data()
const;
64 template <
typename genType>
68 template <
typename genType>
69 genType
const*
data()
const;
76 template <
typename genType>
77 void clear(genType
const& Texel);
82 template <
typename genType>
83 genType
load(extent_type
const& TexelCoord);
88 template <
typename genType>
89 void store(extent_type
const& TexelCoord, genType
const& Data);
98 std::shared_ptr<storage> Storage,
102 size_type BaseLevel);
104 std::shared_ptr<storage> Storage;
105 format_type
const Format;
106 size_type
const BaseLevel;
108 size_type
const Size;
110 data_type* compute_data(size_type BaseLayer, size_type BaseFace, size_type BaseLevel);
111 size_type compute_size(size_type Level)
const;
115 #include "./core/image.inl"
Namespace where all the classes and functions provided by GLI are exposed.
bool empty() const
Return whether the image instance is empty, no storage or description have been assigned to the insta...
format
Texture data format.
extent_type extent() const
Return the dimensions of an image instance: width, height and depth.
Image, representation for a single texture level.
image()
Create an empty image instance.
genType load(extent_type const &TexelCoord)
Load the texel located at TexelCoord coordinates.
format_type format() const
Return the image instance format.
void store(extent_type const &TexelCoord, genType const &Data)
Store the texel located at TexelCoord coordinates.
size_type size() const
Return the memory size of an image instance storage in bytes.
void clear()
Clear the entire image storage with zeros.
void * data()
Return a pointer to the beginning of the image instance data.