Commit Graph

8322 Commits

Author SHA1 Message Date
Бранимир Караџић
0183e7855f GHA: Try to fix wasm build. 2022-10-02 20:47:54 -07:00
Бранимир Караџић
d312be36a5 GHA: Try to fix wasm build. 2022-10-02 20:41:24 -07:00
Бранимир Караџић
67cbd290f7 GHA: Try to fix wasm build. 2022-10-02 20:36:07 -07:00
Бранимир Караџић
14a257f184 GHA: Try to fix wasm build. 2022-10-02 20:34:35 -07:00
Бранимир Караџић
27b86b4162 GHA: Switch to ubuntu-22.04. 2022-10-02 20:13:51 -07:00
Бранимир Караџић
e87f08b1e5 Cleanup. 2022-10-01 08:48:57 -07:00
Бранимир Караџић
76923d21d9 Cleanup. 2022-10-01 08:29:58 -07:00
Biswapriyo Nath
adf5c354b7
scripts: Fix unknown compiler flag for clang (#2934)
This fixes the following warnings with clang based toolchain

warning: unknown warning option '-Wno-logical-op'; did you mean '-Wno-long-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
2022-09-29 07:52:17 -07:00
Бранимир Караџић
905d524b1e Removed AppVeyor CI. 2022-09-23 22:13:14 -07:00
Biswapriyo Nath
14617c4700
CI: Add wasm builds (#2932) 2022-09-23 22:12:13 -07:00
Бранимир Караџић
2d6c85ac7a Fixed emscripten build. 2022-09-23 10:01:47 -07:00
Бранимир Караџић
50ee60c122 [skip CI] Fail-fast. 2022-09-23 07:18:05 -07:00
Бранимир Караџић
76dcd4dc74 Updated docs. 2022-09-23 07:18:05 -07:00
Biswapriyo Nath
956154bf8a
[skip ci] Add GitHub Actions badge in readme (#2931) 2022-09-23 06:35:47 -07:00
Biswapriyo Nath
07a7fa074c
CI: Cancel any in-progress job or run (#2930)
See https://docs.github.com/en/actions/using-jobs/using-concurrency
2022-09-22 23:21:44 -07:00
Бранимир Караџић
79b5ea7351 Cleanup. 2022-09-22 20:32:36 -07:00
Бранимир Караџић
458e2b7243 Updated docs. 2022-09-22 19:10:23 -07:00
Бранимир Караџић
d8370ecb03 Cleanup. 2022-09-22 19:01:30 -07:00
Бранимир Караџић
01f308dd58 GL: Fixed instace data offset when i_dataX is missing in shader. 2022-09-20 20:48:48 -07:00
Biswapriyo Nath
dfa9c9fb83
CI: Add GitHub Actions (#2929) 2022-09-18 21:50:57 -07:00
Biswapriyo Nath
82ad2eac7a
clang-mingw: Enable building tools and examples (#2928)
Add comdlg32 library for GetOpenFileNameA API.
2022-09-18 20:11:51 -07:00
Бранимир Караџић
bd696118bb Fixed warning. 2022-09-18 19:24:08 -07:00
Бранимир Караџић
e4be44e92b Updated API version. 2022-09-18 19:11:58 -07:00
jwdevel
f1f77a6cd3
Record frame num in view stats (#2908)
* 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
2022-09-18 19:09:48 -07:00
Бранимир Караџић
6be057ba5c Updated IDL bindings. 2022-09-17 23:01:14 -07:00
Бранимир Караџић
0ac00d9545 Fixed warning. 2022-09-17 21:47:11 -07:00
Бранимир Караџић
dc2f5e1e96 Updated docs. 2022-09-17 21:43:22 -07:00
Бранимир Караџић
d30032984b D3D9: Enable compilation on Linux. 2022-09-17 19:59:35 -07:00
Бранимир Караџић
7ffeaefad2 API version 116. 2022-09-17 18:18:51 -07:00
pezcode
ba467be036
Add support for indirect draw with indirect count (#2925)
* 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
2022-09-17 18:16:19 -07:00
Branimir Karadžić
408988946d Cleanup. 2022-09-16 20:12:31 -07:00
Бранимир Караџић
cbbaba4099 Cleanup. 2022-09-16 19:32:41 -07:00
blackhole
2b11045331
Example 49 - hextile (Changes to fix regular tiling (tiling rate) to match hex tile rate) (#2924) 2022-09-16 13:48:19 -07:00
Бранимир Караџић
c0a7e838b3 D3D11: Enable texture format enumeration on Linux. 2022-09-15 23:29:27 -07:00
Бранимир Караџић
4faed7cc2b Cleanup. 2022-09-15 22:26:41 -07:00
Бранимир Караџић
4c0baf5603 D3D11: Enable compilation on Linux. 2022-09-15 22:13:34 -07:00
Бранимир Караџић
1fa7570ef8 Fixed DX headers. 2022-09-15 22:07:35 -07:00
Бранимир Караџић
adb4839c63 Updated docs. 2022-09-15 19:13:00 -07:00
blackhole
a8a10b0b89
Adds example 49-hextile (#2922)
* 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>
2022-09-15 19:03:07 -07:00
Бранимир Караџић
a88c7629c3 Fixed build. 2022-09-15 09:33:44 -07:00
Бранимир Караџић
9ad3825cee D3D12: Linux build. 2022-09-14 20:59:59 -07:00
Бранимир Караџић
256c8ed532 Cleanup. 2022-09-14 20:57:37 -07:00
Branimir Karadžić
11ac9f27c7 D3D12: Removed dependency on D3DX12 header. 2022-09-13 22:03:20 -07:00
Branimir Karadžić
358f48879a Updated directx-headers. 2022-09-12 20:19:21 -07:00
Бранимир Караџић
cb439deae3 Updated version number. 2022-09-02 08:11:05 -07:00
Бранимир Караџић
12ff3dc2b2 Docs: Addede predefined uniforms. 2022-09-02 08:10:33 -07:00
ichordev
255a19d397
Added Shader Compiler's default defines to the docs (#2911)
* Added shaderc default defines to docs

* Update tools.rst

* Update tools.rst

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2022-09-02 07:08:22 -07:00
Бранимир Караџић
eacf36abb0 Cleanup. 2022-09-01 23:33:24 -07:00
SnapperTT
4613bd1e02
Parallelised compute shader in example 48 (#2906)
* Parallelised compute shader in example 48

* Ex48 - Dispatch numToDraw/64 workgroups of 64 local threads

* fixed vs build (again)
2022-08-29 06:44:55 -07:00
SnapperTT
8d412e16e4
Fix vs build (#2904) 2022-08-27 07:35:30 -07:00