Commit Graph

8968 Commits

Author SHA1 Message Date
Бранимир Караџић
a9b8b0b0d5 Fixed build. 2025-10-21 18:52:56 -07:00
Бранимир Караџић
9849e60a72 Fixed build. 2025-10-21 18:24:59 -07:00
Бранимир Караџић
792417b695 Updated ImGui renderer. 2025-10-21 18:13:37 -07:00
Бранимир Караџић
1a87647189 Updated ImGui. 2025-10-21 18:13:07 -07:00
Бранимир Караџић
2c057e331f Cleanup. 2025-10-21 18:11:24 -07:00
Бранимир Караџић
577db969fb Removed unused code. 2025-10-20 16:15:30 -07:00
attilaz
0b8dedb4a9 Vulkan RenderPass clear (#3476)
An attempt to fix this issue.
https://github.com/bkaradzic/bgfx/issues/3474

I have tested with all the examples on windows and saw no new problems.
2025-10-17 14:31:02 +00:00
IchorDev
af31da1d3a D bindings: Fix nested struct methods, formatting, and Memory mutability (#3471)
Co-authored-by: IchorDev <ichordev@noreply.git.sleeping.town>
2025-10-10 16:01:41 +00:00
SnapperTT
fca2c0c609 Fix Raspberry Pi Build - EGL_DISPMANX_WINDOW_T not defined (#3470)
See: https://forum.qt.io/topic/88588/qtbase-compilation-error-with-device-linux-rasp-pi3-g-qeglfskmsgbmwindow-cpp/9 for details of the fix
2025-10-07 17:03:05 +00:00
nathanstouffer
b4dbc129f3 Remove FloatFast option for glsl-optimizer (#3469)
* remove FloatFast option for shaderc

* scope removing FloatFast to glsl-optimizer

* correct comment
2025-10-03 17:25:00 +00:00
Бранимир Караџић
b0e9cbd110 Fixed crash. 2025-09-29 19:47:41 -07:00
Бранимир Караџић
fb893903c0 Fix Emscripten build. 2025-09-28 19:37:01 -07:00
Mike
c733598edb Fix #3464 (#3465) 2025-09-26 00:43:04 +00:00
Branimir Karadžić
5eeed00aaa Replaced use of dynamic StringT with FixedStringT. 2025-09-19 20:38:26 -07:00
Бранимир Караџић
9ab1cde267 Cleanup. 2025-09-18 22:15:41 -07:00
Бранимир Караџић
e192d9b50b Cleanup. 2025-09-18 19:09:52 -07:00
Nuno Silva
735f6233de Allow configuring vulkan renderer max descriptor sets per frame (#3461) 2025-09-18 14:25:06 +00:00
Branimir Karadžić
0c4e7e2283 Fixed warning. 2025-09-14 10:36:01 -07:00
Бранимир Караџић
8de4aa8bfd Updated Vulkan headers. 2025-09-14 09:09:11 -07:00
Бранимир Караџић
f1e0ba4b0b Updated glslang. 2025-09-14 09:07:36 -07:00
Бранимир Караџић
686190d7ff Updated spirv-cross. 2025-09-14 09:07:27 -07:00
Бранимир Караџић
6f3fb79c0b Updated spirv-tools. 2025-09-14 09:07:13 -07:00
Бранимир Караџић
7f1ff198be Updated spirv-headers. 2025-09-14 09:06:54 -07:00
Бранимир Караџић
c24efd27c9 Updated meshoptimizer. 2025-09-14 09:01:40 -07:00
Бранимир Караџић
62177540ce Updated cgltf. 2025-09-14 09:01:32 -07:00
korsil
2e73bbb962 fix blit dstDepth calculation using src.m_numLayers instead of dst.m_numLayers (#3460) 2025-09-14 15:48:36 +00:00
Martijn Courteaux
53293f07a8 Add support for r/rg/rgba-16 and -16ui in compute shaders. (#3457) 2025-09-04 16:14:58 +00:00
Matt Tytel
b2736dcc0c Fixing color order for RGB10A2 on vulkan. (#3403)
* Fixing color order for RGB10A2 on vulkan.

* Fixing both texture and frame buffer RGB10A2 format colors.
2025-09-03 14:33:43 +00:00
Бранимир Караџић
7a70927d2a Cleanup. 2025-08-30 19:54:27 -07:00
Бранимир Караџић
85cecd5a5c Updated docs. 2025-08-30 19:53:53 -07:00
Jaziel Guerrero
9dfcab69f7 Add bindings for C3 Lang (#3456)
* Added bindings for C3 lang

* Fix sub-struct generation. Fix empty struct. Fix doc comments. These issues didn't allow the c3 compilation

* Add @extern for each function to match C API

* Add gen suffix to keep naming consistency
2025-08-31 02:44:28 +00:00
Бранимир Караџић
7bb77b5ce9 Updated README. 2025-08-28 07:49:36 -07:00
Бранимир Караџић
e1f5938f4a ImGui: Disable id conflict highlight in release build. 2025-08-27 22:38:42 -07:00
Branimir Karadžić
6b8c1072aa Cleanup. 2025-08-23 20:53:26 -07:00
Branimir Karadžić
30331f4142 Fixed MSVC warnings. 2025-08-23 19:54:08 -07:00
Бранимир Караџић
cbe6789a93 Setup exception handler in examples. 2025-08-23 19:29:49 -07:00
Branimir Karadžić
f268ce5c96 Update assert API to latest bx. 2025-08-23 09:21:18 -07:00
Martin Friedli
fab28297e0 Fix Metal: Persist new window handle (Metal layer) when swapping view (#3452)
* When using the Metal rendering backend and updating the window handle
via setPlatformData(), the passed in Metal layer was not stored.
* Instead, the old window handle was still used.
* The fix addresses a scenario where two BGFX-backed Metal views on iOS
are created and rendering needs to happen either on one view or the other.
2025-08-08 14:46:21 +00:00
Бранимир Караџић
23baae9e00 macOS: Fixed open dialog crash. 2025-07-26 08:05:18 -07:00
Martijn Courteaux
d3dd8fb457 Slightly better surface creation logic for Vulkan. (#3447) 2025-07-22 16:27:21 +00:00
Loppin Vincent
a76903d622 Fix some DXBC opcode info (#3443)
Co-authored-by: Vincent Loppin <vincent.loppin@csgroup.eu>
2025-07-17 17:37:15 +02:00
Scott Campbell
14426c32c9 Beef binding using int instead of int32 (#3440)
* int32_t changed to int, should have been int32

* Update bgfx.bf from idl gen
2025-07-11 08:34:54 +01:00
Aleš Mlakar
7cce5fb12d Beef bindings int as int32 (#3415)
* Updated README (with World Of Goo 2).

* Updated README (with World Of Goo 2).

* Updated cgltf.

* Updated meshoptimizer.

* Updated ImGui.

* Updated glslang.

* Updated spirv-headers.

* Updated spirv-tools.

* Updated spirv-cross.

* Updated Vulkan headers.

* Fix a crash in renderer_d3d12.cpp (#3349)

If querying the debug1 interface fails, don't attempt to release it.

* D bindings: Fix a casing error (#3350)

* Fix error in dynamic version of D bindings

Dazed and confused but trying to continue

* Fix dispatch_indirect still using uint16_t in bgfx.idl

* D bindings: Mark enum conv. functions `nothrow @nogc pure @safe`

* D bindings: Fix a casing error

* fix typo (scrach -> scratch) (#3353)

* Imgui: Add ability to link external STB libs.

* Revert "Updated spirv-tools."

This reverts commit 7cda7c988f.

* Rebuilt spir-v shaders.

* Properly support Wayland under EGL and Vulkan. (#3358)

* Improve NX Vulkan support. (#3357)

This change was developed using publicly available information found in Vulkan headers and official documentation. No proprietary NX resources were used.

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>

* Dynamically load libwayland-egl.so.1 when dealing with Wayland to remove dependencies at program startup. (#3359)

* Cleanup.

* Cleanup.

* Support both X11 and Wayland in the same build. (#3360)

* Support both X11 and Wayland in the same build.

 - Works for both Vulkan and OpenGL.
 - Remove --with-wayland from genie options.
 - Vulkan loads all three extensions for surface creation instead of only one.
 - Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create
   a SwapChain with the given window size.
 - Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then
   recreating to make sure the window is released of its swapchain.
 - Fix dbgText glitch in example-22-windows.
 - Remove old X11-related dependencies for GLFW3.

* Formatting.

* Build documentation improvements (#3362)

* Some documentation improvements: extra info on using GENie.

* Some grammer.

* Bump minimum GLFW version to 3.4.

* Insert vkDeviceWaitIdle to prevent VK_DEVICE_LOST. (#3363)

* Cleanup.

* Updated version.

* Updated meshoptimizer.

* Updated glslang.

* Updated spirv-headers.

* Updated spirv-tools.

* Updated spirv-cross.

* Updated Vulkan headers.

* Cleanup.

* Updated ImGui.

* shaderc: Fixed build.

* wasm: Fixed build.

* Cleanup.

* Fixed clang-debug target trying to build with gcc. (#3368)

Co-authored-by: -- <-->

* Fix compiling entry_noop (#3369)

* Updated GHA containers.

* Use DXGI_SWAP_CHAIN_DESC1 if available for additional scaling options. (#3370)

* Fix: Fix Uniform buffer doing too many iterations when updating renderer uniforms (#3372)

* Fixed IDL, added C++ IDL template.

* Updated version.

* Cleanup.

* Silent clang warnings.

* Updated README.md, fix typo(s) (#3376)

* Disable mingw-clang due broken winnt.h header.

* Fix various typos (#3377)

Found via `codespell -q 3 -S "./3rdparty,*.ttf,*.bin,./examples/common/imgui,./examples/common/font" -L attribut,ba,clude,conly,constan,espace,hashin,indext,inout,lod,nclude,retur,ser,sroll,struc,te,truct,unknwn,usin,utput,varyin`

* Assert on OOM.

* Fix Vulkan swapchain invalidation issue. (#3379)

* Fix Vulkan swapchain invalidation issue.

* Always clamp render pass to frame buffer size.

* Fix formatting.

* Cleanup.

* shaderc: Show correct error line.

* Cleanup.

* Format files to remove trailing spaces (#3384)

* Updated bindings.

* Updated docs.

* Cleanup.

* Cleanup.

* Fixed MSVC warnings.

* Removing alloca compat include.

* Fixed build.

* Fixed warning.

* Updated ImGui.

* Updated cgltf.

* Updated meshoptimizer.

* Updated glslang.

* Updated spirv-headers.

* Updated spirv-tools.

* Updated spirv-cross.

* Updated version.

* Revert "Fix: Fix Uniform buffer doing too many iterations when updating rende…" (#3391)

This reverts commit 4bc652939f.

* Happy New Year!

* Update README.md (#3394)

Added Off The Road 2

* Fix #3344 (#3399)

* Fix UniformBuffer UB regarding UniformType::Enum with extra bits. (#3398)

* Fix only one frame rendered in mobile opengles with intermediate frame buffer (#3405)

* Another fix for crashing with VK_DEVICE_LOST (#3404)

* Fix wasm tinystl compile error (#3406)

* utilize bx::strLen instead of C function

* utilize bx::strCopy instead of C function

* Updated ImGui.

* Updated meshoptimizer.

* Updated cgltf.

* Updated glslang.

* Updated spirv-headers.

* Updated spirv-tools.

* Updated spirv-cross.

* mini-fix: update docs config for doxygen (#3411)

* Remove STB nonsense todo assert.

* docs: clarify Android API version requirement in README (#3414)

Change Android version notation from "14+" to "4.0+ (API 14 or later)" for better clarity among Android developers

* Fixed C++20 deprecated lambda capture.

* Updated cgltf.

* Updated meshoptimizer.

* Updated glslang.

* Updated spirv-headers.

* Updated spirv-tools.

* Updated spirv-cross.

* Rebuilt metal & spir-v shaders.

* Add a file formatting script (#3383)

* Updated version.

* Beef bindings: Fix int32_t as int32

---------

Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
Co-authored-by: Daniel Kalmar <1355747+kalmard0@users.noreply.github.com>
Co-authored-by: IchorDev <15670465+ichordev@users.noreply.github.com>
Co-authored-by: James Fulop <40307536+jamesfAnet@users.noreply.github.com>
Co-authored-by: Martijn Courteaux <courteauxmartijn@gmail.com>
Co-authored-by: imaginaryPineapple <hannespalomaki@gmail.com>
Co-authored-by: Raziel Alphadios <64050682+RazielXYZ@users.noreply.github.com>
Co-authored-by: Matt Tytel <matt@vital.audio>
Co-authored-by: Nuno Silva <little.coding.fox@gmail.com>
Co-authored-by: Bob Conan <sufssl03@gmail.com>
Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
Co-authored-by: attilaz <kocsisa78@gmail.com>
Co-authored-by: nathanstouffer <nathanstouffer1999@gmail.com>
Co-authored-by: Kevin J. <jerebicakevin@gmail.com>
Co-authored-by: Dipendra Sharma <17643682+dipendra-sharma@users.noreply.github.com>
2025-07-11 08:34:29 +01:00
Francisco Facioni
14e0aa5aff [emscripten] Fix MEMORY64 mode (#3437)
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE is 64bit when using MEMORY64 but it's stored as an int 32 bit causing overflow
2025-06-28 21:31:59 +02:00
Бранимир Караџић
b0b9c90b47 Updated Vulkan headers. 2025-06-07 10:28:02 -07:00
Бранимир Караџић
7c79acf98e Updated spirv-cross. 2025-06-07 10:26:12 -07:00
Бранимир Караџић
88e74f02bf Updated spirv-tools. 2025-06-07 10:25:58 -07:00
Бранимир Караџић
c198dc278d Updated spirv-headers. 2025-06-07 10:25:45 -07:00
Бранимир Караџић
93a001377d Updated glslang. 2025-06-07 10:25:31 -07:00
Бранимир Караџић
37e43f6a9e Updated meshoptimizer. 2025-06-07 10:21:55 -07:00