Commit Graph
3883 Commits
Author SHA1 Message Date
Branimir Karadžić 73183bea9b Sized sort keys and uniform cache by use. (#4031) 2026-10-08 04:39:34 +00:00
Branimir Karadžić cca91681c9 Fixed views keeping a destroyed frame buffer, and GL depth read back on ES. (#4027) 2026-10-05 11:12:34 -07:00
Branimir Karadžić 4f2bad0c9d GL/Metal/WebGPU: Fixed blend factor table, and blend constant caching across frames and render passes. (#4026) 2026-10-05 03:30:36 +00:00
Branimir Karadžić e13b87cdd9 Sized handle allocators, timer query rings and free handle queues by use. (#4025) 2026-10-05 02:56:08 +00:00
Branimir Karadžić 01e69a6307 Allocated texture, shader and dynamic buffer tables in blocks as handles are used. (#4024) 2026-10-04 15:45:00 +00:00
Branimir Karadžić aa10f3accb Added BGFX_CAPS_SHADER_F16. (#4023) 2026-10-03 23:27:25 -07:00
Branimir Karadžić fe914721b2 Replaced Superluminal loader with bx::Superluminal. (#4022) 2026-10-03 19:09:57 -07:00
Branimir Karadžić ce1bc87788 GL: Read back textures with PACK_ALIGNMENT 1. (#4021) 2026-10-03 18:29:00 -07:00
Branimir Karadžić 710cb7de83 Fixed integer render target clears and viewport depth range. (#4020) 2026-10-03 18:10:49 -07:00
Branimir Karadžić 719ac5e6f6 GL: Fixed read back, ES precision, and clear quad without uniforms. (#4018) 2026-10-03 15:17:35 +00:00
Branimir Karadžić abf165d8a7 Fixed render bind hash collision reusing another draw's bindings. (#4015) 2026-10-03 01:11:49 +00:00
Branimir Karadžić 500f916540 Relaxed view maximum, made view storage grow with use, up-to 4096 view ids. (#4014) 2026-10-02 16:00:20 -07:00
Branimir Karadžić e4c9e10ca9 Replaced per-view sequence counter with render item index. (#4013) 2026-10-02 04:52:42 +00:00
Branimir Karadžić 8d4af17207 Fixed leaks when init fails. (#4012) 2026-10-01 19:01:49 +00:00
Branimir Karadžić cad0fde4a4 GL: Return from init on context creation failure instead of fatal. (#4011) 2026-10-01 16:17:27 +00:00
Branimir Karadžić 7346c3e731 Reduced per-view memory usage. (#4010) 2026-10-01 06:08:47 +00:00
Branimir Karadžić efb18f8662 Fixed used-view bitset being sized in bits instead of 64-bit words. (#4009) 2026-09-30 18:21:45 -07:00
Branimir Karadžić 70317268f7 Metal: Fixed screenshot blit pipeline format, synchronizeResource on shared buffers, integer MSAA resolve, stale read-only depth mask, converted texture update pitch, and lost reset flags. (#4007) 2026-09-30 13:33:53 -07:00
Branimir Karadžić 997b0cfe36 Fixed MRT clear with UINT8_MAX palette index clearing the attachment on clear quad. (#4006) 2026-09-30 12:06:59 -07:00
Thomas Clegg 9304c09edc Metal: Fixed blit encoder released without endEncoding on shutdown. (#4005)
Resource updates (texture/buffer updates, texture zero-init) open a blit
encoder that is ended in submit. When updates are pending at shutdown,
RendererShutdownBegin clears m_rendererInitialized, submit is skipped, and
renderFrame's autorelease pool frees the still-open encoder, which Metal
API validation reports as 'Command encoder released without endEncoding'.

Retain the blit encoder while it's open, and end encoding before the final
command buffer kick in shutdown.
2026-09-30 10:04:53 -07:00
Branimir Karadžić b743ef8f7e D3D1x: Report device loss from a failed readback Map. (#4004) 2026-09-29 17:08:20 +00:00
Branimir Karadžić 968e4f8dd9 Added explicit texture mip count, and per-binding sampler LOD clamp. (#4002) 2026-09-28 22:00:14 -07:00
Branimir Karadžić ce3bee65f2 D3D1x/WebGPU: Survive device loss in the readback paths. (#4001) 2026-09-28 19:56:23 -07:00
James Green d8b2a448aa D3D11: Fixed the DXGI_SWAP_EFFECT_DISCARD fallback swap chain. (#3997)
The retry kept DXGI_SCALING_NONE, and createSwapChain/resizeBuffers
added DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING for every swap effect; both
are flip-model only, so the fallback failed with DXGI_ERROR_INVALID_CALL
and a bitblt chain could not be resized.
2026-09-25 15:35:15 -07:00
Branimir Karadžić c00cc181cc Metal: Allow metal binary. (#3996) 2026-09-24 22:20:22 -07:00
vrimar ae6bc904d5 WGPU: Fixed 32-bit build, viewFormatCount narrowing since #3959. (#3995) 2026-09-23 21:17:38 -07:00
Branimir Karadžić 81d81fba72 GL: Fixed timer query stall without a swap. WGPU: Reset read-only depth/stencil for swap chains. Fixed occlusion query result on handle reuse. (#3993) 2026-09-19 21:59:40 +00:00
Sam e693f8f72d GL: fix data-less compressed texture arrays and stale m_immutableStorage on handle reuse (#3992) 2026-09-19 12:41:29 -07:00
Branimir Karadžić 42f028887c D3D11: Skipped MSAA resolve of integer formats. WGPU: Fixed uninitialized frame buffer size, and read-only depth/stencil pipeline state. (#3991) 2026-09-19 05:42:34 +00:00
Branimir Karadžić fd070e679f D3D12: Fixed depth-stencil plane states. (#3990) 2026-09-18 19:16:27 -07:00
Branimir Karadžić 1fb47dca7a VK/WGPU: drain a view's blits and uniform cache before its dispatches. VK: block on the swapchain image of window framebuffers on a headless device (#3989) 2026-09-18 13:41:57 +00:00
Branimir Karadžić 1512f4d961 WebGL: EAC texture formats have no sRGB variant. (#3988) 2026-09-17 21:23:01 -07:00
U U U d6890aa5c2 WebGL: Enabled EAC texture formats via WEBGL_compressed_texture_etc extension. (#3980)
EACR11/EACR11S/EACRG11/EACRG11S fell through to the default case, so on
WebGL the extension was never enabled and EAC textures silently failed
to load. Follow-up to #3487.
2026-09-17 21:07:22 -07:00
Branimir Karadžić ca8e4528a2 GL: Fixed main back buffer sRGB state with MSAA. (#3987) 2026-09-17 21:04:27 -07:00
vrimar 3ca5a63428 Recreate the main swap chain when only its flags change on reset. (#3986)
Context::reset moves the per-surface flags (MSAA, sRGB, HiDPI) off the reset flags onto SwapChain::flags, but every backend's updateResolution gate still compared only the stripped reset flags, so a runtime MSAA change was dropped.
(cherry picked from commit 1ffb270f91a63403c069fcf652bd2411d962b437)
2026-09-18 01:05:41 +00:00
Branimir Karadžić 5777fe1f66 D3D11/12/WGPU: Retried refused swap chain resize. D3D12/MTL/VK/WGPU: Fatal on failed pipeline creation. (#3985) 2026-09-17 14:14:56 +00:00
Branimir Karadžić b380f0ee73 Fixed explicit swap chains in a headless init: MTL screenshots, MTL/VK/WGPU window list compaction, MTL/WGPU user depth pipeline format. (#3984) 2026-09-17 02:26:46 +00:00
Branimir Karadžić 6e6c062e1f Closed the gaps between the GLSL and HLSL halves of bgfx_shader.sh. (#3983) 2026-09-16 04:30:06 +00:00
Branimir Karadžić ee7f9f66e2 Fixed EGL headless bootstrap. D3D12: fixed explicit swap chain MSAA state. GL: Cleared and blitted texture slices. (#3981) 2026-09-15 05:56:24 +00:00
Branimir Karadžić bd85653546 Added cube array samplers. (#3979) 2026-09-14 00:54:40 +00:00
Branimir Karadžić dd38b306c8 VK: Fixed image layout tracking for read-only depth/stencil attachments. (#3978) 2026-09-13 09:49:40 -07:00
Branimir Karadžić 9499caafb0 Optimized bind state hashing, and matrix cache reservation. (#3977) 2026-09-13 06:22:34 +00:00
Branimir Karadžić 8ee74e8260 Optimized encoder bind state, and uniform updates. (#3976) 2026-09-12 22:43:02 +00:00
Branimir Karadžić 7e8bb589f1 Added setUniformRef, BGFX_TEXTURE_SRGB_MUTABLE, and byte-range compute buffer bindings. (#3974) 2026-09-12 06:49:53 +00:00
Branimir Karadžić 5e4943cd0e D3D12: Fixed swap chain resource release during reset and shutdown. (#3973) 2026-09-12 05:53:05 +00:00
Branimir Karadžić 90f0995f8e Rebuilt shaders. (#3972) 2026-09-10 23:39:39 -07:00
Branimir Karadžić 2e51cb6aa9 Added depth control, sample mask, and read-only depth/stencil attachments. (#3971) 2026-09-11 05:22:53 +00:00
Branimir Karadžić 9b636df330 GL: Don't toggle primitive restart on WebGL. Fixes #3967. (#3969) 2026-09-07 20:58:25 +00:00
Branimir Karadžić 6fb33c492b Metal: Fixed externaly created device release. (#3966) 2026-09-06 10:42:02 -07:00
Branimir Karadžić 7293e6f75b D3D11, D3D12: swap chain, clear and subresource state fixes. GL: debug group must be pushed and popped on the same context. (#3965) 2026-09-06 00:49:55 +00:00