* 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
* First commit - tested with dx11 on windows
* Minor changes & adding some comments.
* Update hextile.cpp
* update some bin files
* rename texture
* minor comment update
* Added support to configure tile rate as well as tile rotation strength, update bin files & screenshot
* use texture from polyhaven, updated screenshot, updated bin files & minor changes to shader.
* missed pushing texture
* update license
* Update hextile.cpp
* Fix regular tiling
* use ktx with mipmaps
* minor change to ensure that regular tiling & hextile matches with default tile rate.
* minor c
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
* Added example 48-multidrawindirect
* Added example 48-multidrawindirect
* enable shader.mk to build directories that only have compute shaders
* compiled shaders for example 48
* MultidrawIndirect example renamed to DrawIndirect, sets draw mtx in compute
* update 48-drawindirect shaders
* fix typos
* fixed bgfx::setPlatformData change for example48
* fix docs
* added name to cs_drawindirect.sc
* style updates for example 44
* add slider to example 48-drawindirect
* opengl: Implement texture swizzle mapping
* imageformats: Fix compilation on android
Android GLES does not have a definition for GL_BGR: Swizzle instead.
d3d9: Do software conversion to take advantage of B5G6R5.
d3d11: Do software conversion to take advantage of B5G6R5.
gl: Set internal representation to swap R and B.
metal: Swizzle R and B and remove software conversion.