//
// cocos2d::CCTexture2D::bitsPerPixelForFormat from 0x1800a88f0 to 0x1800a892f (63 bytes)
//
// 3 xrefs:
// > cocos2d::CCTexture2D::bitsPerPixelForFormat @ 0x1800a8963
// > cocos2d::CCTexture2D::initWithData @ 0x1800a9182
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:16 +0000
//
__int64 __fastcall cocos2d::CCTexture2D::bitsPerPixelForFormat(__int64 a1, int a2)
{
__int64 result; // rax
switch ( a2 )
{
case 0:
case 1:
result = 32;
break;
case 2:
case 5:
case 6:
case 7:
result = 16;
break;
case 3:
case 4:
result = 8;
break;
case 8:
result = 4;
break;
case 9:
result = 2;
break;
default:
result = 0xFFFFFFFFLL;
break;
}
return result;
}