- Cocos Creator: 3.7.2
- Xcode: 16.2
- Error:
Sampler binding cc_spriteTexture at set 2 binding 11 is not bounded - Symptom: corrupted or incorrect shader output
The shader rendered corrupted output or failed to produce the expected effect, while Xcode repeatedly logged:
1 | /Applications/Cocos/Creator/3.7.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm: line 906 |
Solution
Open the effect file and change the sampler from binding = 11 to binding = 12.


See the related Cocos forum discussion for additional context.