9449 Commits

Author SHA1 Message Date
Branimir Karadžić
f73862c579 D3D12: Fixed texture readback resource state. Disabled refcount asserts for external device. (#3935) 2026-08-27 19:27:48 +00:00
Branimir Karadžić
a81591b15f EGL, WGL: Fixed caller-provided context handling. (#3934) 2026-08-27 18:12:48 +00:00
Branimir Karadžić
7f0b9c930b Fixed amalgamated build. (#3933) 2026-08-27 16:08:40 +00:00
Branimir Karadžić
732724bf75 VK, WebGPU: Fixed frame buffer resize on headless reset. (#3931) 2026-08-26 06:40:45 +00:00
Branimir Karadžić
1dfc38978d D3D12: Fixed scratch descriptor heap sizing. Added present pacing for window frame buffers. (#3930) 2026-08-26 06:23:28 +00:00
Branimir Karadžić
a014198164 WebGPU: Fixed mipgen for BGRA8 textures. (#3929) 2026-08-25 18:31:48 -07:00
Branimir Karadžić
c3540fdcff Metal: Preserve swapchain framebuffer size. (#3928) 2026-08-25 07:13:27 -07:00
Robin Allen
e5969e73c6 Metal: Fix wrong setScissor: calls after window resize (#3927)
Unlike the other backends, FrameBufferMtl::postReset was empty, so nothing was
updating FrameBufferMtl::width/height on window resize, causing wrong
setScissorRect: calls to be emitted.

This adds code to postReset that sets m_width/m_height from the
sizes of the attached textures, like the other backends do.
2026-08-25 07:07:59 -07:00
Branimir Karadžić
d611ecef3f Fixed WebGPU sRGB, MSAA, depth-stencil readback, and BGRA8 storage. (#3926) 2026-08-25 05:57:56 +00:00
Branimir Karadžić
0432b5d3c5 Reworked blit to use regions, added buffer blit and read buffer. (#3924) 2026-08-25 03:31:09 +00:00
Branimir Karadžić
f564ae8bf9 Fixed device lost handling. (#3923) 2026-08-24 22:24:26 +00:00
Raziel Alphadios
aadf386aac Fix DeviceLost in D3D11 TimerQuery bypassing BGFX_FATAL with DX_CHECK (and thus being un-handleable by consumers) (#3922) 2026-08-24 18:10:04 +00:00
Branimir Karadžić
780f7bf00a Fix MSAA blit into a multisampled destination and stale MSAA resolve. (#3921) 2026-08-23 04:44:43 +00:00
Branimir Karadžić
dd961560d5 Raw buffers (#3920)
* Added raw compute buffers, resource type/dimension now comes from shader reflection. Bumped shader version to 12.

* Rebuild internal embedded shaders.

* Updated bindings.

* Rebuild embedded shaders.

* Rebuilt shaders.

* Updated bindings.
2026-08-22 20:03:12 -07:00
Gustavo Maciel
19eedfed66 Fixes missing type bug in zig-bindings introduced on #3756 (#3919)
Co-authored-by: Gustavo Maciel <gus@tavomaciel>
2026-08-23 01:47:50 +00:00
Branimir Karadžić
307cbbfbcb Preprocessor: Fix missing NL at EOF. (#3918) 2026-08-22 18:03:04 +00:00
Branimir Karadžić
6d0d15f2a5 Entry: Fixed keymapings. (#3917) 2026-08-21 23:07:36 -07:00
Lcbx
53e3c599fd python bindings follow-up (#3916)
* docs: update python bindings link

* python bindings : generate matching .pyi file (stub file used for type checking / documenting public interface)

* python bindings : make only .pyi have documentation comment / docstrings
2026-08-22 00:27:54 +00:00
Lcbx
c772ecc3f5 add python bindings generator (#3915)
* add python binding generator

* add idl generated python binding
2026-08-21 11:27:11 -07:00
puffball1567
1f0215f89d docs: add bgfxim Nim API bindings (#3913)
* docs: add bgfxim Nim API bindings

* docs: make bgfxim the default Nim binding

---------

Co-authored-by: puffball1567 <puffball1567@users.noreply.github.com>
2026-08-21 16:02:41 +00:00
Branimir Karadžić
cffee4ee96 GLES 3.2: Various fixes. (#3914) 2026-08-21 15:51:00 +00:00
Branimir Karadžić
ada201c314 GL: Fix clear of an integer render target, and several other GLES issues. (#3912) 2026-08-21 04:06:46 +00:00
Branimir Karadžić
66b560219e Metal: Fixed stencil-only framebuffer attachment. (#3911) 2026-08-21 01:15:50 +00:00
Branimir Karadžić
91b3aa3785 Fix stencil-aspect readback, depth format reporting, and blit bugs. (#3910) 2026-08-21 00:51:39 +00:00
Branimir Karadžić
8c28353267 Replaced FCPP with new preprocessor. (#3909) 2026-08-20 19:07:34 +00:00
Branimir Karadžić
4b24c1482f Fixed image declaration macros not expanding format argument. (#3908) 2026-08-20 11:13:40 -07:00
Branimir Karadžić
d8db55f812 D3D11, D3D12, GL, VK: Resolve when blitting from sampleable MSAA surface. (#3907) 2026-08-20 05:39:04 +00:00
Branimir Karadžić
7e2f4e34c0 GL: Bind missing vertex attributes to offset 0. (#3906) 2026-08-19 14:01:40 -07:00
Branimir Karadžić
fde976604c Raised minimum OpenGL version to 4.3. OpenGLES to 3.0. Removed glsl-optimizer. (#3905) 2026-08-19 10:12:25 -07:00
Branimir Karadžić
1820f47383 DXC 1.10.2605.2. (#3904) 2026-08-18 09:05:51 -07:00
Branimir Karadžić
1eb770679f WebGPU: Fixed timer query. Fixes #3902. (#3903) 2026-08-18 00:07:52 +00:00
Branimir Karadžić
d918bd0be7 Fixed 08-update texture update size, WebGPU cube slice count, Vulkan init order. (#3901) 2026-08-17 04:15:05 +00:00
Branimir Karadžić
35a98dd645 Grow per-frame storage on-demand instead statically allocating for the maximum. (#3900) 2026-08-16 17:26:25 -07:00
Branimir Karadžić
a772859619 Fixed missing texture3DLod/Grad aliases for GLSL >= 130. Fixes #3888. (#3899) 2026-08-15 16:14:10 -07:00
Branimir Karadžić
1671c5d065 VK, GL: Fixed Uint10 vertex attribute format. (#3897) 2026-08-14 23:55:55 -07:00
Branimir Karadžić
0e698a6ad2 Metal: Fixed swizzled format caps, sampler border color, headless render pass, and empty frame buffer validation. (#3896) 2026-08-14 23:41:57 -07:00
Branimir Karadžić
7a09f00333 Fixed MSAA/framebuffer, format caps, stencil, and debug name issues. (#3895) 2026-08-15 06:08:05 +00:00
Branimir Karadžić
bc70563478 Metal: Fixed pipeline state cache reusing stale uniform handles. (#3893) 2026-08-14 18:19:30 -07:00
Branimir Karadžić
419cf9c281 Metal: Fixed texture clear, image sub-range, and view dimension. (#3892) 2026-08-14 18:04:37 -07:00
Branimir Karadžić
c53bdbbadc VK: Fixed BGFX_STATE_BLEND_SRC_ALPHA_SAT using source alpha instead of the saturated factor. (#3891) 2026-08-14 17:13:21 -07:00
Branimir Karadžić
7b41f2e108 D3D12: Fixed occlusion query results never resolving until the ring buffer filled. (#3890) 2026-08-14 17:11:27 -07:00
Branimir Karadžić
faa00a1639 Fixed topologyConvert strip conversion. Fixed Uint10 vertex packing. (#3889) 2026-08-14 23:11:26 +00:00
Branimir Karadžić
b12eef18b5 Fixed clear quad not writing stencil. (#3887) 2026-08-13 18:04:54 -07:00
Branimir Karadžić
b54610b562 Rebuilt shaders. (#3886) 2026-08-13 17:10:11 -07:00
Branimir Karadžić
e3fc300358 D3D11: Restore discrete clear for backbuffer. Fixes 13-stencil/14-shadowvolumes. (#3885) 2026-08-13 16:36:02 -07:00
Branimir Karadžić
56ef37bcf8 Implemented BGFX_SAMPLER_SAMPLE_STENCIL in all backends. (#3884) 2026-08-13 15:38:58 -07:00
Branimir Karadžić
3d3b08778e Support depth-1 volume textures. (#3883) 2026-08-12 18:24:25 -07:00
Branimir Karadžić
0af3dac7bf D3D12: Filter out mismatching clear value warnings. Fixes #3879. (#3882) 2026-08-12 23:05:55 +00:00
Branimir Karadžić
e83814b122 GL: Restore texture blit and read-back fallbacks for OpenGL ES. (#3881) 2026-08-11 14:39:38 -07:00
Sam
56ecfded54 Fix: add missing memory barriers for compute writes (#3878)
* Fix: add missing memory barriers for compute writes

* Check define GL_TEXTURE_FETCH_BARRIER_BIT
2026-08-10 23:37:33 +00:00