* Reformatted comments; fixed a couple of oversights
* D bindings: deterministic sub-struct order
* Added missing default to IDL
* Fixed sub-struct linkage; regenerate D binds
* Culled D bindings for header-only C++ functions
* Added missing default to bgfx.idl
* cppinline now supported by all auto-gen bindings
The pattern "func.cppinline and not func.conly" is to make sure that C bindings for `bgfx_vertex_layout_has` are still generated.
* Fix mangling issue; use updated BindBC-Common API
* Add missing default to setTransform in IDL
* Fix erroneous generation of `uc_int64`
Non-deterministic ordering of hash-maps were the culprit all along!
* Add missing default to overrideInternal IDL & re-generate
* Reformatted comments; fixed a couple of oversights
* D bindings: deterministic sub-struct order
* Added missing default to IDL
* Fixed sub-struct linkage; regenerate D binds
* Culled D bindings for header-only C++ functions
* Added missing default to bgfx.idl
* cppinline now supported by all auto-gen bindings
The pattern "func.cppinline and not func.conly" is to make sure that C bindings for `bgfx_vertex_layout_has` are still generated.
* Reformatted comments; fixed a couple of oversights
* D bindings: deterministic sub-struct order
* Added missing default to IDL
* Fixed sub-struct linkage; regenerate D binds
* Add support for remaining unsupported ASTC formats
Add new ASTC formats into pixelformats example and ninja scripts
Rebuild ASTC textures
* Update idl and generate
Move comma in pixelformats
Co-authored-by: Raziel Alphadios <raziely@gmail.com>
* Add 'frameNumber' to Frame struct
Previously, the frame number returned from bgfx::frame() was tracked separately in the Context. Now,
we store that information in the Frame. This will allow us to attach the frame number to ViewStats.
* Add frame number to ViewStats
When ViewStats are enabled, we tag each timer query with the current frame number, then include
that information in the final results. In this way, clients can correlate specific work that they
submitted to specific GPU timing information.
NOTE: Some backends not implemented, yet. They will always have 0 for frame number.
The ones which are implemented are:
* OpenGL
* Vulkan
* D3D 9,11,12
* Noop
* Add indirect draw with indirect count (BGFX_CAPS_DRAW_INDIRECT_COUNT)
* Update bindings
* VK: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT
* D3D12: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT
* GL: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT
* 48-drawindirect: Use BGFX_CAPS_DRAW_INDIRECT_COUNT if available
* 48-drawindirect: Update shaders
* Minor rewording & increase of clarity
* Corrected a noun that was being used as a verb
* Slight rewording of the C99 bindings notices
* Actually, this sounds better & looks nicer
Current docs are a little ambiguous with the term "profiling"; sometimes it means
bgfx::CallbackI functions, and sometimes per-view stats collection. This makes it a little clearer.
* Adds UAV support for D3D12, Vulkan and reworked support for OpenGL, D3D11
UAV support is now uniform across compute and draw.
To set a UAV you just use bgfx::setImage() and IMAGE2D in the shader, just like in compute.
Due to these changes shaders will have to be recompiled.
The changes include:
- D3D11 requires patching of the UAV slot number (which is now done by modifying the DXBC instead of using a macro)
- If the DXBC binary includes a debug chunk, that is also patched to match the new slot number
- All the other renderers don't need any kind of patching
- There are some shader annotations to better convert the UAV format used in hlsl to spirv
Possibility of further enhancements:
- bgfx::setViewFrameBuffer() only supports binding to a framebuffer or, using BGFX_INVALID_HANDLE, to bind the default backbuffer. This doesn't allow for the case where there is no need to bind to either one of them, for example when using a fragment shader only to read and write to an UAV.
* Bump shader version, because they need to be recompiled.