Branimir Karadžić
ef52d84ca4
Cleanup. ( #3670 )
2026-04-18 18:43:48 +00:00
Branimir Karadžić
c5df1d91e8
Cleanup. ( #3669 )
2026-04-18 06:11:44 +00:00
Branimir Karadžić
f89839ddb8
Use uint32_t for stream mask instead of uint8_t. ( #3668 )
2026-04-17 23:51:33 +00:00
Branimir Karadžić
a721b869ea
WebGPU: Populate texture format caps from specs. ( #3665 )
2026-04-17 06:19:03 +00:00
Branimir Karadžić
0b0ddb7f6b
Added generate mips on frame buffer resolve. ( #3664 )
2026-04-17 05:04:57 +00:00
MatthewBeshay
a2d3c83f0d
Fix D3D12 fragment shader constant buffer misalignment ( #3663 )
...
The fragment shader CBV address was computed as gpuAddress + vsh->m_size,
but D3D12 requires constant buffer view addresses to be 256-byte aligned
(D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT). When the vertex shader
constant buffer exceeds 256 bytes without being a multiple of 256, the
fragment shader reads from a misaligned address, producing corrupt uniform
values.
This causes rendering artifacts or completely black output for any shader
program where the VS constant buffer size is not a multiple of 256 bytes,
since the fragment shader receives incorrect uniform data (e.g. a non-zero
alpha reference threshold that discards all pixels).
The fix aligns the VS constant buffer size to 256 bytes before placing the
FS constants, and uses the aligned offset when computing the FS CBV address
in both the main render loop and the blitter path.
2026-04-15 21:10:01 +00:00
Vincent Bousquet
e9a4f671bc
DX12: fix invalid state when creating a BLIT_DST texture without mem block ( #3656 )
...
* DX12: fix invalid state when creating a BLIT_DST texture without mem block
* Only set state when it's not external texture.
---------
Co-authored-by: Branimir Karadžić <branimirkaradzic@gmail.com >
2026-04-14 23:28:37 +00:00
Branimir Karadžić
cc109f587b
GLES: Fixed D32 RBO format. ( #3662 )
2026-04-14 03:59:42 +00:00
Бранимир Караџић
e21258414d
Updated ImGui.
2026-04-12 22:41:36 -07:00
Бранимир Караџић
f05eef4900
Updated Vulkan headers.
2026-04-12 22:41:36 -07:00
Бранимир Караџић
8e560ad663
Updated spirv-tools.
2026-04-12 22:41:36 -07:00
Бранимир Караџић
19e597d991
Updated spirv-cross.
2026-04-12 22:41:36 -07:00
Бранимир Караџић
dd28ebda36
Updated spirv-headers.
2026-04-12 22:41:36 -07:00
Бранимир Караџић
fe9c1c93db
Updated glslang.
2026-04-12 22:41:36 -07:00
Branimir Karadžić
6c8954f7da
Set default project properly. ( #3660 )
2026-04-13 01:31:53 +00:00
Branimir Karadžić
f3ad0e91af
Removed bgfx::weldVertices. ( #3659 )
2026-04-13 01:30:57 +00:00
Branimir Karadžić
2e49e0e38a
GLES: Fixed ANGLE issues. ( #3658 )
2026-04-10 04:05:34 +00:00
Vincent Bousquet
173be4d0fa
DX12: fix blitting inside a texture 2D array ( #3657 )
2026-04-09 21:21:17 +00:00
Vincent Bousquet
8a070c8e27
Vulkan: fix missing swapchain image acquire semaphore ( #3655 )
2026-04-09 21:20:28 +00:00
Branimir Karadžić
48a1f88bcc
VK: Lazy transition texture state, instead of bitching about it. ( #3653 )
2026-04-07 21:03:08 +00:00
Branimir Karadžić
23afca44d8
Expand cone to pass overlap test. ( #3652 )
2026-04-04 21:54:19 -07:00
Branimir Karadžić
7c0d813b83
Remove unused shader parsers. ( #3651 )
...
* Removed shader parsers.
* Removed shader parsers.
2026-04-05 02:54:27 +00:00
Any
fc29f359f3
Fix out-of-bounds access in the bndCaretPosition->nvgTextGlyphPositions of the nanovg example. ( #3650 )
2026-04-02 16:12:57 +00:00
Branimir Karadžić
9a1ce9c60b
Fixed #3647 . ( #3648 )
2026-03-31 16:34:09 -07:00
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