Commit Graph

9198 Commits

Author SHA1 Message Date
Branimir Karadžić
8532b2c45d Fix race between bgfx::begin and bgfx::frame encoder allocation. (#3646)
* Fix race between bgfx::begin and bgfx::frame encoder allocation.

* Update src/bgfx.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-25 21:36:02 -07:00
Jason Millard
9c98438372 metal: isDepth24Stencil8PixelFormatSupported is only available on macOS (#3645) 2026-03-24 23:09:10 +00:00
Branimir Karadžić
f1ff08a799 shaderc: Fixed GLSL 140. (#3644) 2026-03-24 05:32:52 +00:00
Matteo Valdina
fd8d480b28 Fix x86 crash: CreateTexture command buffer read uses wrong type (#3643)
The _external parameter is written to the command buffer as uint64_t (8 bytes)
but read back as uintptr_t (4 bytes on 32-bit). This causes a 4-byte
deserialization misalignment on x86, corrupting all subsequent command
buffer reads and leading to EXCEPTION_ACCESS_VIOLATION (0xC0000005) during
D3D11 initialization.

Co-authored-by: Matteo Valdina <mavaldin@microsoft.com>
2026-03-23 16:05:18 +00:00
Branimir Karadžić
a7016487e5 Added 51-gpufont example. (#3641) 2026-03-23 02:34:05 +00:00
Branimir Karadžić
3118337be2 VK: Fixed crash when using BGFX_FRAME_FLUSH. (#3640) 2026-03-22 07:09:15 +00:00
Branimir Karadžić
681320668d Add GPU device info. (#3639) 2026-03-21 22:39:57 +00:00
Branimir Karadžić
f3f4e04636 Makefile: Detect if sh is present. (#3638) 2026-03-21 21:59:03 +00:00
Branimir Karadžić
0499759e8c Fixed runtime renderer selection. (#3637) 2026-03-21 16:57:04 +00:00
Branimir Karadžić
42b52a7a51 VK: Fix default non-external texture state. (#3635) 2026-03-21 08:56:41 -07:00
Branimir Karadžić
6f72fda08b GENie: Set default project properly when making combined examples. (#3631) 2026-03-21 07:31:36 +00:00
Branimir Karadžić
f26d3b1342 Use render pass creation data for render pass hash. (#3636) 2026-03-21 07:14:13 +00:00
Branimir Karadžić
4e6b6f0264 Metal: Fix validation when instancing data is provided, but shaders doesn't use it. (#3634) 2026-03-21 05:28:35 +00:00
Daniele Bartolini
20a637e3e6 VK: only enable non-opaque compositing if requested (#3630) 2026-03-13 02:47:58 +00:00
Branimir Karadžić
a73c12db8f Added bgfx::AttribType::Int8/Uint16. (#3626) 2026-03-09 06:13:51 +00:00
Branimir Karadžić
608713739b Metal: Switched to metal-cpp. (#3624)
* Metal: Switched to metal-cpp.

* Cleanup.

* Remove more Obj-C code.

* Add metal-cpp license.

* Cleanup.

* Reduce number of leak reports.

* Reducing Obj-C code.

* renderer_mtl.mm -> .cpp

* Cleanup.

* Cleanup.
2026-03-08 23:33:43 +00:00
Branimir Karadžić
b28febb4a8 NonLocalAllocator: Remove orphaned slabs. Fixed #2867. (#3625) 2026-03-08 04:02:40 +00:00
Branimir Karadžić
2721c747ae Added BGFX_FRAME_FLUSH. (#3623) 2026-03-07 04:50:46 +00:00
Branimir Karadžić
ae080bc634 D3D11: Fix SRV for external texture. (#3622) 2026-03-06 23:41:29 +00:00
Branimir Karadžić
298f5b0202 Improved docs on bgfx::begin/end. (#3621) 2026-03-06 05:37:34 +00:00
Gary Hsu
8e68ab9a83 Add null checks for mtl when no swap chain (#3620) 2026-03-05 21:16:53 +00:00
Branimir Karadžić
de17eda241 Improved documentation. Added IDL docs. (#3619) 2026-03-05 06:55:05 +00:00
Branimir Karadžić
ccdbacdb74 IDL: Docs cleanup. (#3618) 2026-03-02 18:22:08 +00:00
Ondřej Voves
b7d18c5ca7 Fix slow shaderc. (#3617) 2026-03-02 16:38:58 +00:00
Branimir Karadžić
0b1c1ecaca IDL: Generate C++ header. (#3616) 2026-03-01 00:23:13 +00:00
Branimir Karadžić
0c45d90ca7 Updated bindings. (#3615) 2026-02-28 23:35:50 +00:00
Branimir Karadžić
3e6455e6b0 IDL: Improve docs. (#3614) 2026-02-28 23:34:30 +00:00
Branimir Karadžić
c10271dc28 IDL: Added docs generator. (#3613) 2026-02-28 22:29:20 +00:00
Branimir Karadžić
26bae47dbe IDL: C++ generator improvements. (#3612) 2026-02-28 20:48:33 +00:00
Branimir Karadžić
874a013bf0 Updated bindings. (#3611) 2026-02-28 08:10:19 +00:00
Branimir Karadžić
7600e5e0eb IDL: Fixed C++ generator. (#3610) 2026-02-28 07:58:25 +00:00
Бранимир Караџић
b121263362 VK: Fix default texture state. 2026-02-24 07:32:35 -08:00
Бранимир Караџић
33930ac14a VK: Add external texture. 2026-02-23 22:28:11 -08:00
Бранимир Караџић
a059eb2967 Tint: Fixed MSVC 32-bit build. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
36ddff3264 Updated Vulkan headers. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
de0cdd0740 Updated Tint. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
651c7711b1 Updated spirv-cross. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
b9dff93496 Updated spirv-tools. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
7147583ad7 Updated spirv-headers. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
8f79485b97 Updated glslang. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
9a7c4a9842 Updated cgltf. 2026-02-21 19:54:05 -08:00
Бранимир Караџић
da166eba4c Updated ImGui. 2026-02-21 19:54:05 -08:00
Branimir Karadžić
91814c9729 Added flag for texture formats that can be used as back-buffer format. (#3605) 2026-02-22 02:44:26 +00:00
Branimir Karadžić
651c203116 Undo default back buffer format. Fix VK. (#3604) 2026-02-20 03:14:27 +00:00
Branimir Karadžić
856208328c Use back buffer format when capturing screen shot. (#3603) 2026-02-20 00:46:41 +00:00
Branimir Karadžić
4cb794eade VK: Initialize texture flags to 0. (#3602) 2026-02-19 17:47:48 +00:00
Martijn Courteaux
b03bd2d698 [shaderc] Make SPIRV, HLSL, DXIL, Metal backends optional to allow for leaner builds. (#3594)
* Make SPIRV, HLSL, DXIL, Metal backends optional to allow for leaner builds.

* New and automatic detection of available compilers to enable backends.

* Forgot to fixup Metal.

* Cleanup. Check for glsl-optimizer likewise.
2026-02-19 01:43:03 +00:00
Branimir Karadžić
c85fa25266 Added BGFX_FRAME_* flags to add ability to discard all draw calls. (#3599) 2026-02-19 01:42:31 +00:00
Branimir Karadžić
2800f17970 Cleanup. (#3598) 2026-02-18 21:01:18 +00:00
Martijn Courteaux
f3bc108efe Restore Vulkan 1.0 compatibility. (#3597)
* vulkan: Do not hard-depend on Vulkan 1.2 and Vulkan 1.1.

* fix(ub): vector iterators are not the same as taking address of position.

* fix(ub): Mask bit iterator had implicit promotion bug.

* fix(ub): Vulkan backend shouldn't copy fragment shader source if there is none.
2026-02-18 20:12:49 +00:00