Commit Graph
816 Commits
Author SHA1 Message Date
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ć 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
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ć 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ć 2e51cb6aa9 Added depth control, sample mask, and read-only depth/stencil attachments. (#3971) 2026-09-11 05:22:53 +00: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
Branimir Karadžić 8c8b6b5692 Raised renderer baseline, and removed caps every backend now supports. (#3962) 2026-09-05 05:24:56 +00:00
Branimir Karadžić 01dbbbc08c Added swap-chain. (#3959) 2026-09-05 01:44:33 +00:00
Branimir Karadžić 7f0b9c930b Fixed amalgamated build. (#3933) 2026-08-27 16:08:40 +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ć 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
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ć d8db55f812 D3D11, D3D12, GL, VK: Resolve when blitting from sampleable MSAA surface. (#3907) 2026-08-20 05:39:04 +00:00
Branimir Karadžić b12eef18b5 Fixed clear quad not writing stencil. (#3887) 2026-08-13 18:04:54 -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ć 234d7a745d D3D11: Fixed BGFX_FRAME_FLUSH not issuing queued commands. (#3874) 2026-08-05 18:25:41 -07:00
Branimir Karadžić 7a38c5ce83 D3D11/D3D12/GL: Fixed blit ordering: submit blits after the previous framebuffer resolve and before the view clear. (#3862) 2026-07-30 18:15:29 +00:00
Branimir Karadžić 8377801ee0 Add BC4S, BC5S, BC6HU, RGB10A2U and D32FS8 texture formats. (#3857) 2026-07-29 21:25:53 +00:00
Branimir Karadžić 1862bf0480 Guard against undersized texture updates. Fix compute image views. (#3856) 2026-07-29 14:10:57 +00:00
Branimir Karadžić ce18bdb6c6 Allow negative x/y in bgfx::setViewRect. (#3848) 2026-07-25 15:04:06 +00:00
Branimir Karadžić f98c247765 D3D11/D3D12: Added debug info queue message dump. (#3846) 2026-07-24 23:29:23 +00:00
Branimir Karadžić 8e50cd586c Fixed auto-gen mips on resolved MSAA render targets. (#3845) 2026-07-24 22:44:05 +00:00
Branimir Karadžić 435627021d Added clear texture API. (#3836) 2026-07-16 05:41:58 +00:00
Sergio R. Z. MassonandCopilot 759bdeb936 D3D11: align binding limit types (#3833)
* D3D11: widen binding stage indices

Keep binding iteration and texture commits aligned with the renderer limit types.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bd442137-1560-4dd6-ae9d-0fac55012d46

* D3D11: narrow binding limits

Keep the runtime binding limits aligned with the stage index type.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bd442137-1560-4dd6-ae9d-0fac55012d46

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-15 14:11:59 +00:00
Branimir Karadžić a4555482f9 Increased number of texcoord attributes, increased instance data, added int32/uint32 vertex attributes. (#3832) 2026-07-14 05:15:13 +00:00
Branimir Karadžić 6eb09a4a9b Added setImage with array layer range for compute images. (#3829) 2026-07-13 04:19:07 +00:00
Branimir Karadžić 510b0445c2 D3D11: Fixed cube-array binding and compute buffer UAV binding. (#3828) 2026-07-12 20:30:52 -07:00
Branimir Karadžić 7c6a7e5f00 D3D11/VK/Metal/GL: Fixed dangling framebuffer handle on destroy. (#3827) 2026-07-12 20:30:42 -07:00
Branimir Karadžić c5ed0238b4 D3D11/D3D12: Fixed MSAA multi-layer resolve. (#3826) 2026-07-12 19:32:23 -07:00
Branimir Karadžić 1fae5a8b06 D3D11/D3D12/VK/WebGPU: Fixed blend-state, and blend factor for MRT. (#3825) 2026-07-13 01:43:24 +00:00
Branimir Karadžić 2877442edc Fixed BC texture block-size rounding in readback/create/update. (#3822) 2026-07-12 00:07:51 -07:00
Branimir Karadžić 7b38346442 Added stencil write mask. (#3821) 2026-07-11 23:46:38 -07:00
Branimir Karadžić 3838cccd94 D3D11: Bind pixel shader on depth-only render target. Closes #3800. (#3808) 2026-07-01 22:46:01 -07:00
Branimir Karadžić ffcbac4ac0 D3D11/WebGPU: Fixed vertex pulling draw count. Guard WebGPU getPipeline stream loop. (#3775) 2026-06-22 03:02:03 +00:00
Branimir Karadžić 73629ada72 Dedup bindings per encoder. (#3772) 2026-06-20 05:22:12 +00:00
Branimir Karadžić befae614da Fix amalgamated build. (#3760) 2026-06-15 17:13:38 +00:00
Branimir Karadžić d5ea625272 Added video decoder support. (#3756) 2026-06-14 06:49:15 +00:00
Branimir Karadžić 1dac10c2ad Fixed transcoded texture update using wrong decode/copy pitch with explicit source pitch. (#3747) 2026-06-08 23:02:33 -07:00
Branimir Karadžić f19f599cde D3D11/D3D12/VK: Fixed partial update of transcoded texture overrunning buffer. Closes #2713. (#3744) 2026-06-08 21:52:24 -07:00
Branimir Karadžić ddfc707b4e D3D11: Re-implement RGBA4/RGB5A1/R5G6B5 swizzle in TextureD3D11::update. Closes #2953. (#3742) 2026-06-08 21:07:05 -07:00
Branimir Karadžić 48edba7c10 D3D11: Clear stale CS shader resource binding when slot is used as UAV. Closes #3450. (#3740) 2026-06-08 20:35:12 -07:00
Branimir Karadžić e92490c3f7 Added _layer parameter to bgfx::readTexture for texture array/cubemap readback. Closes #3235. (#3737) 2026-06-07 09:22:37 -07:00