| 251 | |
| 252 | |
| 253 | ILubyte 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 | |
| 269 | ILubyte iCompFormatToChannelCount(ILenum Format) |
no outgoing calls
no test coverage detected