Commit Graph
436 Commits
Author SHA1 Message Date
Branimir Karadžić 65f9425d8c Updated to new SIMD. (#3699) 2026-05-03 18:51:10 +00:00
Branimir Karadžić 58faaadf1c VK: Split FrameBufferVK::acquire into swap-chain acquire + markDirty(). (#3694) 2026-04-27 18:32:53 +00:00
attilaz b2a7d94d57 Update renderer_vk.cpp (#3693)
Fix PROFILE_SCOPE typo
2026-04-27 14:22:28 +00:00
Branimir Karadžić 331783cf9a Renamed bx::uint32_min/max/clamp/cntlz/cnttz/mod to typed equivalents. (#3692) 2026-04-27 04:19:08 +00:00
Branimir Karadžić 50bf41b224 Fixed stremMask check. (#3682) 2026-04-21 11:21:40 -07:00
unravel-dev 4212c8ed27 Fix BGFX_RESET_VSYNC not affecting secondary swap chains on D3D11, Vulkan, OpenGL (#3675)
Toggling BGFX_RESET_VSYNC via bgfx::reset() only updated the main/init swap
chain. Secondary swap chains created through createFrameBuffer(nwh, ...) kept
their initial vsync state, leaving framerate capped at refresh rate. D3D12
already handled this correctly.

D3D11: forward present flags to FrameBufferD3D11::present so it can pass
DXGI_PRESENT_ALLOW_TEARING alongside syncInterval=0. Compute presentFlags once
in flip() and reuse for both secondary framebuffers and the main swap chain.

Vulkan: in updateResolution, iterate m_windows and call FrameBufferVK::update
on each valid secondary framebuffer so SwapChainVK::update sees the new
BGFX_RESET_VSYNC and recreates the swapchain with the correct present mode.

OpenGL (WGL/EGL): wglSwapIntervalEXT is per-context, eglSwapInterval is
per-surface. Cache the desired interval in GlContext::m_swapInterval and
re-apply it in makeCurrent() whenever a different context/surface becomes
current, so secondary SwapChainGL instances pick up the current value. Also
honor the initial BGFX_RESET_VSYNC flag in create() instead of hard-coding 0.
2026-04-19 22:35:57 +00:00
Branimir Karadžić 0b0ddb7f6b Added generate mips on frame buffer resolve. (#3664) 2026-04-17 05:04:57 +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ć 7c0d813b83 Remove unused shader parsers. (#3651)
* Removed shader parsers.

* Removed shader parsers.
2026-04-05 02:54:27 +00:00
Branimir Karadžić 9a1ce9c60b Fixed #3647. (#3648) 2026-03-31 16:34:09 -07: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ć 42b52a7a51 VK: Fix default non-external texture state. (#3635) 2026-03-21 08:56:41 -07:00
Branimir Karadžić f26d3b1342 Use render pass creation data for render pass hash. (#3636) 2026-03-21 07:14:13 +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
Бранимир Караџић 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
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ć 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
Branimir Karadžić 40e614c45d Added external texture parameter. (#3596)
* Added external texture parameter.

* Use uint64_t instead of uintptr_t for external texture because VkImage is always 64-bit.
2026-02-18 20:12:37 +00:00
Branimir Karadžić 780ef58e97 VK: Fixed VRS feature detection. Issue #3549. (#3555) 2026-01-18 16:26:03 +00:00
Branimir Karadžić 4baed6e076 Happy New Year! (#3550) 2026-01-14 16:26:51 +00:00
attilaz b0d32c079e Fix for PowerVR Rogue GE8320 random flickering polygons (#3539) 2026-01-09 09:31:09 -08:00
Branimir Karadžić 241e9c3330 Added Init.fallback option. Cleanup. (#3522) 2025-12-24 04:29:32 +00:00
Бранимир Караџић 8a6a40108a Improved profiler colors. 2025-11-21 10:31:54 -08:00
Branimir Karadžić efe84f3f14 VK: Implement chunked scratch buffer for uniforms. Fixed issue #3112. (#3500) 2025-11-20 01:57:19 +00:00
Branimir Karadžić df6e5ced62 VK: Don't assert when it fails to set debug object name. (#3499)
* VK: Don't assert when it fails to set debug object name.

* VK: Show VkResult as decimal to match vulkan.h.
2025-11-18 19:39:19 +00:00
Branimir Karadžić 9e8ecf4af4 Added EAC texture formats. (#3487) 2025-11-11 08:39:24 -08:00
Branimir Karadžić 35911ac2d9 Added uniform frequency. (#3485)
* Added uniform frequency.

* Cleanup.

* Cleanup.
2025-11-10 23:41:33 +00:00
Бранимир Караџић 358223c63e Added variable rate shading. 2025-11-06 17:21:53 -08:00
Бранимир Караџић 0fb116cf45 VK: Added descriptor pool per frame. 2025-11-04 14:15:49 -08:00
Бранимир Караџић 3722e21525 Added 50-headless example. 2025-11-01 21:29:11 -07:00
Branimir Karadžić 5d8eb6d67c Cleanup. 2025-10-31 08:44:02 -07:00
Branimir Karadžić 16cf4f8683 Added ability to configure minimum uniform buffer size. 2025-10-29 16:06:17 -07:00
Бранимир Караџић 959cab248e Added ability to configure backbuffer depth/stencil. 2025-10-29 12:10:41 -07:00
Branimir Karadžić 5aaf3c62e4 Cleanup. 2025-10-27 15:31:11 -07:00
Бранимир Караџић cd3749dac9 Cleanup. 2025-10-25 22:18:15 -07:00
Gary Hsu e7c2c69edb Add optional layerIndex argument to overrideInternal (#3477)
* Add optional layerIndex argument to overrideInternal

* Run genie idl
2025-10-26 05:12:34 +00:00
Branimir Karadžić f3cab4d2d8 Detect nVidia Nsight debugger presence. 2025-10-23 10:06:24 -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
Бранимир Караџић 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
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
Martijn Courteaux d3dd8fb457 Slightly better surface creation logic for Vulkan. (#3447) 2025-07-22 16:27:21 +00:00