//
// ShaderLayer::ShaderLayer from 0x100273420 to 0x1002734cc (172 bytes)
//
// 1 xrefs:
// > ShaderLayer::create @ 0x10026db68
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
ShaderLayer *__fastcall ShaderLayer::ShaderLayer(ShaderLayer *a1)
{
__int64 v2; // x0
v2 = cocos2d::CCLayer::CCLayer((__int64)a1);
*(_QWORD *)v2 = off_1007D3580;
*(_QWORD *)(v2 + 320) = off_1007D3A00;
*(_QWORD *)(v2 + 328) = &off_1007D3A70;
*(_QWORD *)(v2 + 336) = off_1007D3A88;
*(_QWORD *)(v2 + 344) = &off_1007D3AA8;
*(_QWORD *)(v2 + 352) = off_1007D3AC8;
GJShaderState::GJShaderState((GJShaderState *)(v2 + 408));
a1->m_timesyncShaderActions = 0;
a1->m_gameLayer = nullptr;
a1->m_shader = nullptr;
a1->m_sprite = nullptr;
a1->m_renderTexture = nullptr;
*(_WORD *)&a1->m_antiAlias = 0;
sub_1000229B0(&a1->m_savedCameraPosition);
*(_QWORD *)&a1->m_savedCameraRotation = 0x3F80000000000000LL;
a1->m_scaleFactor = 1.0;
sub_100022AF4(&a1->m_screenSize);
sub_100022AF4(&a1->m_textureContentSize);
sub_100022AF4(&a1->m_targetTextureSize);
sub_100022AF4(&a1->m_targetTextureSizeExtra);
return a1;
}