9498 Commits

Author SHA1 Message Date
Fabio Soldati
6b9153a3de Updated PeakFinder Urls in README.md (#3982) 2026-09-15 14:04:40 +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ć
a0b5c3deaa Update README. 2026-09-12 19:59:01 +00:00
falia18
5524768d33 Add MGS4 to readme (#3975) 2026-09-12 19:57:08 +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
Mathias Berntsen
a5a3d30421 Fix Noop embedded shader stub to binary version 12 (#3970) 2026-09-09 00:40:51 +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
Branimir Karadžić
78ee247bf5 S2H cleanup. (#3964) 2026-09-05 19:46:00 +00:00
Branimir Karadžić
71aef19f1f Fixed build. (#3963) 2026-09-05 11:00:53 -07:00
eres-j
6cfb803865 Example s2h (#3941)
* Add s2h example

* Add s2h Hello Screen example

* Add gather feature example

* Add Arrow, Coordinate System and Table S2H examples

* Add generate user font s2h example

* Add 2D s2h example

* Add 3D s2h example

* Add clear s2h example

* Add Quad Post s2h example

* Add Use User Font s2h example

* Add Debug Zoom s2h example

* Add Quad VS/PS s2h example

* Add Scatter s2h example

* Update s2h_scatter.hlsl (more readable)

* Add Zoom 2D s2h example

* Update s2h samples order to corespong to GiGi one

Enhance Gather sample to looks more like the original one

* Handle bottom-left fragment origins in S2H shaders

* Fix S2H rendering across OpenGL, Vulkan, and DX12

* Removed the redundant u_s2hScreen uniform

- S2H now derives the top-left pixel coordinate from bgfx’s u_viewRect and OpenGL’s built-in bgfx_ndc.z
- Removed its creation, per-view uploads, and destruction from s2h.cpp

* Update 54-s2h shaders to match bgfx shader style

`float2/3/4` → `vec2/3/4`
`float4x4` → `mat4`
`int2 / uint2` → `ivec2 / uvec2`
2026-09-05 17:56:41 +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ć
75cef038bb texturev: Fixed file list keyboard and mouse handling. (#3961) 2026-09-05 04:44:26 +00:00
Branimir Karadžić
f3d4ad0df0 Metal: Fixed 3D texture blit. (#3960) 2026-09-04 18:45:26 -07:00
Branimir Karadžić
01dbbbc08c Added swap-chain. (#3959) 2026-09-05 01:44:33 +00:00
Branimir Karadžić
ad4a0173d6 X11: Fixed keyboard input after layout switch. (#3958) 2026-09-04 22:22:03 +00:00
Branimir Karadžić
fcdc7116a6 X11: Implemented fullscreen toggle, fixed exit segfault. (#3957) 2026-09-04 04:07:56 +00:00
Robin Allen
892fdbe343 Update Blackshift section in README. (#3956) 2026-09-03 14:01:43 +00:00
Бранимир Караџић
1ac4eb3cdd WebGPU: Fixed compressed texture update bounds, and pipeline cache key. 2026-09-03 05:26:33 +00:00
Бранимир Караџић
49d0c38c0c D3D12: Fixed 3D UAV mip depth range. 2026-09-03 03:33:25 +00:00
Бранимир Караџић
5a2eec3246 Fixed matrix cache growth strategy. Fixes #3952. 2026-09-02 16:48:04 +00:00
Бранимир Караџић
67edbbd72a D3D12: Device removed extended data. 2026-09-02 05:51:25 +00:00
Бранимир Караџић
8dbdcf411a ChunkedScratchBufferT: grow the ring where the write head is. 2026-09-02 03:12:42 +00:00
Бранимир Караџић
340ef142c3 Enable primitive restart for strip topologies. 2026-09-01 23:47:00 +00:00
Бранимир Караџић
2963e09d6b DXGI: Use IDXGISwapChain2 to set frame latency. 2026-09-01 00:45:17 +00:00
Бранимир Караџић
470cb0154e Updated Vulkan headers. 2026-08-31 04:48:00 +00:00
Бранимир Караџић
37b6ea512b Updated glslang. 2026-08-31 04:48:00 +00:00
Бранимир Караџић
bc976f168f Updated spirv-cross. 2026-08-31 04:48:00 +00:00
Бранимир Караџић
31ca235db8 Updated spirv-tools. 2026-08-31 04:48:00 +00:00
Бранимир Караџић
1e2e22d983 Updated spirv-headers. 2026-08-31 04:48:00 +00:00
Бранимир Караџић
f3ffcc648a Updated meshoptimizer. 2026-08-31 04:48:00 +00:00
Branimir Karadžić
c32236ecb3 Update AirMech section in README
Replaced AirMech screenshot with a YouTube trailer image link.
2026-08-31 03:26:47 +00:00
Nolram
a4af1f49dc Re-capitalised "nVidia" to "NVIDIA" where applicable. A minor change, but it aids consistency and is now in-line with NVIDIA's own naming policy. You're welcome Jensen. (#3945) 2026-08-31 01:17:29 +00:00
Branimir Karadžić
87ec6b86c6 Fix API selection in standalone example. (#3944) 2026-08-30 23:29:36 +00:00
Branimir Karadžić
3fab221b95 Use bx::hasUniqueObjectRepresentation to detect undesired padding. (#3943) 2026-08-30 18:38:21 +00:00
Branimir Karadžić
a7c3e28ae0 Fixed RenderBind hash collision on unoccupied bindings. (#3942) 2026-08-30 17:41:36 +00:00
Branimir Karadžić
a9dd2e20fe texturev: Added ability to delete image. (#3940) 2026-08-30 06:06:13 +00:00
Branimir Karadžić
5929f9826c VK: Fixed 3D to 2D blit, and compressed texture update region exceeding mip extent. (#3939) 2026-08-30 05:59:25 +00:00
Branimir Karadžić
c949b911fc Reduce default footprint: optional debug text, drop unused shader copies. (#3938) 2026-08-29 22:32:32 -07:00
Moţ
4b4c138fb0 vulkan: use BC1_RGBA formats so TextureFormat::BC1 keeps its 1-bit alpha (#3937)
VK_FORMAT_BC1_RGB_UNORM_BLOCK has no alpha component, so sampling a BC1
texture on Vulkan always returns a = 1.0 and the 1-bit punch-through
alpha of the source data is silently discarded.

This contradicts bgfx's own definition of the format - bgfx.h documents
TextureFormat::BC1 as "5-bit R, 6-bit G, 5-bit B, 1-bit A" - and it
disagrees with every other backend:

  D3D11/D3D12  DXGI_FORMAT_BC1_UNORM
  OpenGL       GL_COMPRESSED_RGBA_S3TC_DXT1_EXT

all of which decode the punch-through alpha. There is no separate BC1A
format in bgfx, so the RGB variant is not an intentional distinction.

Switching to the RGBA variants costs nothing in terms of support: if
textureCompressionBC is available, the specification requires all of
BC1-BC7 with the same feature set, so VK_FORMAT_BC1_RGBA_UNORM_BLOCK is
available wherever VK_FORMAT_BC1_RGB_UNORM_BLOCK is. Fully opaque BC1
blocks decode identically under both.
2026-08-29 09:06:54 -07:00
Branimir Karadžić
7d81d2874b Submit optimization: skip unused views, hash only occupied bind slots, index reserved FrameArenaT directly. (#3936) 2026-08-28 23:37:13 +00:00
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