Commit Graph

3472 Commits

Author SHA1 Message Date
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
Branimir Karadžić
30331f4142 Fixed MSVC warnings. 2025-08-23 19:54:08 -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
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
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
Vincent Bousquet
d763739516 Fix blitting between texture array layers (#3428) 2025-05-31 00:46:12 +00:00
luzpaz
4109e14b43 Fix various typos (#3427)
Found via `codespell -q 3 -S "./3rdparty,*.ttf,*.bin,*.bin.h,./examples/common/imgui,./examples/common/font,./examples/runtime/text/sherlock_holmes_a_scandal_in_bohemia_arthur_conan_doyle.txt" -L attribut,ba,clude,conly,constan,dne,espace,hashin,hart,indext,inout,lod,nclude,reduct,retur,ser,sroll,statics,struc,te,tolen,truct,unknwn,usin,utput,varyin`
2025-05-28 19:12:06 +00:00
Synaptor
9dc992147a Initialize color palette at start (#3425) 2025-05-13 14:40:57 +00:00
Martijn Courteaux
0e734522cd Vulkan memory allocation LRU cache (#3422)
* First version of a memory allocation cache for Vulkan.

* Increase maximal cached memory allocations to 1024. Add configuration parameter.
2025-04-12 00:21:34 +00:00
Luigi Malomo
c8f237a39b Add u_invModelView uniform to shader and documentation (#3421) 2025-04-11 23:54:42 +00:00
Бранимир Караџић
01dc8c59b4 Cleanup. 2025-04-01 15:05:30 -07:00
Martijn Courteaux
6e76442979 Fix TextVideoMemBlitter staging buffer issue. (#3419)
* Fix TextVideoMemBlitter staging buffer issue, and broken vkFlushMappedMemoryRange.

* Merge flush and reset.

* Rename flush_and_reset() to flush(_reset=true).
2025-04-01 22:00:06 +00:00
Бранимир Караџић
72f9b8b516 Workaround VK scratch buffer issue. 2025-03-29 08:21:28 -07:00
Бранимир Караџић
8a07b4edac Updated version. 2025-03-15 12:25:55 -07:00
nathanstouffer
b92787168f Fix wasm tinystl compile error (#3406)
* utilize bx::strLen instead of C function

* utilize bx::strCopy instead of C function
2025-02-04 09:49:45 -08:00
Matt Tytel
736bffa3dd Another fix for crashing with VK_DEVICE_LOST (#3404) 2025-01-31 09:11:36 -08:00
Matt Tytel
2b1c73f348 Fix only one frame rendered in mobile opengles with intermediate frame buffer (#3405) 2025-01-30 10:13:02 -08:00
Martijn Courteaux
abe193a407 Fix UniformBuffer UB regarding UniformType::Enum with extra bits. (#3398) 2025-01-28 09:58:22 -08:00
Martijn Courteaux
de56398919 Fix #3344 (#3399) 2025-01-25 14:10:01 -08:00
Бранимир Караџић
860bafb23f Happy New Year! 2025-01-13 15:45:40 -08:00
Бранимир Караџић
7b3e1ebf62 Revert "Fix: Fix Uniform buffer doing too many iterations when updating rende…" (#3391)
This reverts commit 4bc652939f.
2024-12-31 09:07:30 -08:00
Бранимир Караџић
0411ff7f82 Updated version. 2024-12-28 22:41:35 -08:00
Бранимир Караџић
896c610b72 Removing alloca compat include. 2024-12-21 19:25:00 -08:00
Branimir Karadžić
6dfd865300 Fixed MSVC warnings. 2024-12-21 18:08:54 -08:00
Aaron Franke
40961806bd Format files to remove trailing spaces (#3384) 2024-12-09 22:01:16 -08:00
Бранимир Караџић
042ebe8814 Cleanup. 2024-12-07 22:49:45 -08:00
Бранимир Караџић
69acf28813 Cleanup. 2024-11-21 07:34:58 -08:00
Martijn Courteaux
01af383a6c Fix Vulkan swapchain invalidation issue. (#3379)
* Fix Vulkan swapchain invalidation issue.

* Always clamp render pass to frame buffer size.

* Fix formatting.
2024-11-21 07:29:24 -08:00
Бранимир Караџић
4372a1f56c Assert on OOM. 2024-11-19 16:41:35 -08:00
luzpaz
e9c9d711d7 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`
2024-11-16 08:03:12 -08:00
Бранимир Караџић
b46b0171a0 Cleanup. 2024-11-13 12:37:03 -08:00
Бранимир Караџић
edfffff895 Updated version. 2024-11-12 20:20:34 -08:00
Бранимир Караџић
fe41532c40 Fixed IDL, added C++ IDL template. 2024-11-12 20:19:52 -08:00
Nuno Silva
4bc652939f Fix: Fix Uniform buffer doing too many iterations when updating renderer uniforms (#3372) 2024-11-10 20:30:45 -08:00
Matt Tytel
cc789e83a6 Use DXGI_SWAP_CHAIN_DESC1 if available for additional scaling options. (#3370) 2024-10-31 19:37:30 -07:00
Бранимир Караџић
16f5562000 wasm: Fixed build. 2024-10-21 18:21:09 -07:00
Бранимир Караџић
423a2b5706 Cleanup. 2024-10-18 20:33:18 -07:00
Бранимир Караџић
dd4199bcb3 Updated version. 2024-10-08 21:58:43 -07:00
Бранимир Караџић
96391d0b59 Cleanup. 2024-10-08 18:59:34 -07:00
Martijn Courteaux
fdb09ca401 Insert vkDeviceWaitIdle to prevent VK_DEVICE_LOST. (#3363) 2024-10-08 07:00:02 -07:00
Martijn Courteaux
e488a07f1b 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.
2024-10-05 14:33:22 -07:00
Бранимир Караџић
3f9fe0d34e Cleanup. 2024-10-01 16:23:25 -07:00
Бранимир Караџић
54ab573055 Cleanup. 2024-10-01 11:22:25 -07:00
Martijn Courteaux
a6e372ead9 Dynamically load libwayland-egl.so.1 when dealing with Wayland to remove dependencies at program startup. (#3359) 2024-10-01 11:06:56 -07:00
Daniel Kalmar
7e5bb54a3e 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>
2024-10-01 09:02:06 -07:00
Martijn Courteaux
3303b451a1 Properly support Wayland under EGL and Vulkan. (#3358) 2024-10-01 09:01:44 -07:00
James Fulop
e464102960 fix typo (scrach -> scratch) (#3353) 2024-09-12 19:19:10 -07:00
Daniel Kalmar
eaec8ddf3b Fix a crash in renderer_d3d12.cpp (#3349)
If querying the debug1 interface fails, don't attempt to release it.
2024-08-31 11:15:28 -07:00