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

Function iCompFormatToChannelCount

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

Source from the content-addressed store, hash-verified

267
268
269ILubyte iCompFormatToChannelCount(ILenum Format)
270{
271 if (Format == PF_RGB || Format == PF_3DC || Format == PF_RXGB)
272 return 3;
273 else if (Format == PF_LUMINANCE || /*Format == PF_R16F || Format == PF_R32F ||*/ Format == PF_ATI1N)
274 return 1;
275 else if (Format == PF_LUMINANCE_ALPHA /*|| Format == PF_G16R16F || Format == PF_G32R32F*/)
276 return 2;
277 else if (Format == PF_G16R16F || Format == PF_G32R32F || Format == PF_R32F || Format == PF_R16F)
278 return 3;
279 else //if(Format == PF_ARGB || dxt)
280 return 4;
281}
282
283
284ILboolean iLoadDdsCubemapInternal(ILuint CompFormat)

Callers 3

iLoadDdsCubemapInternalFunction · 0.85
AllocImageFunction · 0.85
ReadMipmapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected