MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetMipDataSize

Method GetMipDataSize

Source/Images/texture_data.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121unsigned int TextureData::GetMipDataSize(unsigned int face, unsigned int mip) const {
122 const unsigned index = face * mip_levels + mip;
123 if (index < mip_data_sizes.size()) {
124 return mip_data_sizes[index];
125 } else {
126 return 0;
127 }
128}
129
130const char *TextureData::GetMipData(unsigned int face, unsigned int mip) const {
131 if (is_loaded) {

Callers 2

subImageMethod · 0.80
TextureToVRAMMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected