mask for CCLayer (cocos2dx v.2)

mask for CCLayer (cocos2dx v.2)
0.0 0


Hi! I’m new to cocos2d-x and I have a question.
Is it possible to implement OpenGl ES shader to mask any CCNode?
I found information how to mask CCSprite, but I couldn’t find anything about masking CCLayer with a branch of children with in.
Can I do things like that?