MCPcopy Create free account
hub / github.com/DentonW/DevIL / iCompFormatToBpc

Function iCompFormatToBpc

DevIL/src-IL/src/il_dds.cpp:253–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253ILubyte iCompFormatToBpc(ILenum Format)
254{
255 if (Has16BitComponents)
256 return 2;
257 if (Format == PF_R16F || Format == PF_G16R16F || Format == PF_A16B16G16R16F)
258 //DevIL has no internal half type, so these formats are converted to 32 bits
259 return 4;
260 else if (Format == PF_R32F || Format == PF_R16F || Format == PF_G32R32F || Format == PF_A32B32G32R32F)
261 return 4;
262 else if(Format == PF_A16B16G16R16)
263 return 2;
264 else
265 return 1;
266}
267
268
269ILubyte iCompFormatToChannelCount(ILenum Format)

Callers 2

iLoadDdsCubemapInternalFunction · 0.85
ReadMipmapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected