A bgfx renderer backend for cocos v4

I wrote a bgfx renderer backend for cocos v4 after weeks of work:

The purpose of this project is to make a useful renderer. But it is still experimental and has many problems now. I hope there can be more help on testing and fixing. Any help will be appreciated!

10 Likes

Wow! This looks awesome. I was just thinking of porting bgfx to Cocos2d-x last week. Specifically to get DirectX 12 rendering.

If anyone here isn’t aware, bgfx supports many rendering APIs including DirectX 11, DirectX 12, Metal, OpenGL, OpenGL ES, Vulkan, and more. I don’t know much about bgfx yet, but from the outside it appears to be a very interesting/useful library.

I am so excited for this. Thank you so much for the contribution

Excellent work, well done!

Any comment from the maintainers of Cocos2d-x? What are their plans to extend the rendering support of the framework? Adopting BGFX instead of writing their own Metal renderer would have had many many benefits right now.

We thought about this. I’m not sure how the decision was made. I do know this is still on the list.