Commit Graph
609 Commits
Author SHA1 Message Date
Branimir Karadžić 7afee0f9af Added MSAA sample counts to caps trace. (#4073) 2026-10-20 21:24:39 -07:00
Branimir Karadžić 8b8050788c Added per-format MSAA sample count caps, and clamp MSAA requests per format. Closes #1396. (#4072) 2026-10-20 20:35:15 -07:00
Branimir Karadžić 1845ed5d8e shaderc: Fixed implicit global uniform check missing Metal and non-vec4 globals. Closes #3592. (#4071) 2026-10-21 00:59:13 +00:00
Branimir Karadžić fe3f08fb0e Added Vulkan HDR10, fixed D3D11/D3D12 HDR10 color space, and ImGui colors in HDR10. (#4061) 2026-10-17 09:57:27 -07:00
Branimir Karadžić 227eac0d75 Metal: Fixed occlusion queries and depth texture data, added HDR10 and unretained command buffers. Closes #2356, #2017, #1827, #2974, #3642. (#4060) 2026-10-17 07:10:37 +00:00
Branimir Karadžić fa2d4b56f3 Fixed ImGui text input, and other trivial issues. (#4058) 2026-10-16 23:32:59 +00:00
Branimir Karadžić a7c0e5b426 Main window rebinding: every renderer follows a new nwh, entry on every platform (#4056) 2026-10-16 10:35:20 -07:00
Markus 1d4d025514 Added java bindings (#4016)
* Java bindings: Consolidate generated API and utilities

* Java bindings: Added multi-file output

* Java bindings: Introduced module-info.java for JPMS support

* Docs: Added link to Java API bindings in overview and README
2026-10-08 18:45:00 -07:00
Matthew 06b2c3a4b3 NVIDIA Reflex integration. (#4029)
* Integrated NVIDIA Reflex.

* Generated bindings and replaced bools with enum.

* Merged upstream master.

* Addressed review feedback.
2026-10-08 18:44:43 -07:00
Branimir Karadžić 73183bea9b Sized sort keys and uniform cache by use. (#4031) 2026-10-08 04:39:34 +00:00
Branimir Karadžić aa10f3accb Added BGFX_CAPS_SHADER_F16. (#4023) 2026-10-03 23:27:25 -07: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ć 997b0cfe36 Fixed MRT clear with UINT8_MAX palette index clearing the attachment on clear quad. (#4006) 2026-09-30 12:06:59 -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ć f2cf4bdb85 Updated IDL version. (#4003) 2026-09-28 22:08:22 -07: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ć 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
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ć 01dbbbc08c Added swap-chain. (#3959) 2026-09-05 01:44:33 +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ć c949b911fc Reduce default footprint: optional debug text, drop unused shader copies. (#3938) 2026-08-29 22:32:32 -07: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ć 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
Gustavo MacielandGustavo Maciel 19eedfed66 Fixes missing type bug in zig-bindings introduced on #3756 (#3919)
Co-authored-by: Gustavo Maciel <gus@tavomaciel>
2026-08-23 01:47:50 +00:00
Lcbx 53e3c599fd python bindings follow-up (#3916)
* docs: update python bindings link

* python bindings : generate matching .pyi file (stub file used for type checking / documenting public interface)

* python bindings : make only .pyi have documentation comment / docstrings
2026-08-22 00:27:54 +00:00
Lcbx c772ecc3f5 add python bindings generator (#3915)
* add python binding generator

* add idl generated python binding
2026-08-21 11:27:11 -07:00
Branimir Karadžić 8c28353267 Replaced FCPP with new preprocessor. (#3909) 2026-08-20 19:07:34 +00:00
Branimir Karadžić fde976604c Raised minimum OpenGL version to 4.3. OpenGLES to 3.0. Removed glsl-optimizer. (#3905) 2026-08-19 10:12:25 -07:00
Branimir Karadžić 35a98dd645 Grow per-frame storage on-demand instead statically allocating for the maximum. (#3900) 2026-08-16 17:26:25 -07:00
Matthew 527397d502 Atmospheric sky example v1 (#3861)
* Implemented terrain heightmap loading.

* Textured the terrain in sky2.

* Atmosphere implementation.

* Terrain lit, aerial perspective implemented.

* Shadow mapping for the terrain.

* Implemented hex-tiling.

im tired

* Cleanup

* Fixed OpenGL sampler issue.

* Brought back overridden shaders.
2026-08-02 02:29:51 +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ć ce18bdb6c6 Allow negative x/y in bgfx::setViewRect. (#3848) 2026-07-25 15:04:06 +00:00
Branimir Karadžić 435627021d Added clear texture API. (#3836) 2026-07-16 05:41:58 +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
Jason Millard 7927ef1c6f Metal: Add support for layered rendering. (#3802)
* metal: add support for layered rendering

* examples: add 52-layered demonstrating layered rendering
2026-07-14 02:16:24 +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ć 7b38346442 Added stencil write mask. (#3821) 2026-07-11 23:46:38 -07:00
Branimir Karadžić 86ad82cfe2 Reduce amount of memory used. Allow dynamic draw call buffer resizing per frame. (#3790) 2026-06-28 05:05:25 +00:00
Branimir Karadžić 2ed5f31f6a WebGPU: Updated Tint and WebGPU header. (#3777) 2026-06-22 05:55:04 +00:00
Branimir Karadžić f671eb83bf Removed bgfx/platform.h (#3761) 2026-06-16 04:10:12 +00:00
Branimir Karadžić befae614da Fix amalgamated build. (#3760) 2026-06-15 17:13:38 +00:00
Branimir Karadžić 4f1930a87b Fixed bad merge. (#3757) 2026-06-13 23:59:30 -07:00
Branimir Karadžić d5ea625272 Added video decoder support. (#3756) 2026-06-14 06:49:15 +00: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
Branimir Karadžić 11151de78d Added setTexture view API. (#3728) 2026-06-06 17:34:02 +00:00
Jaziel Guerrero 0d4141d03a Updated C3 binding script to generate C3 binding based on C3 v0.8.0 (#3720) 2026-05-28 20:38:35 -07:00
ShuangLiu1992andClaude Opus 4.7 43fbfaba41 docs: clarify readTexture's READ_BACK flag is CPU-only (#3691)
Per maintainer feedback, distill the @attention block down to the
essence: it's a texture for CPU readback, and can't be a GPU resource
at the same time. Add a one-line pointer to examples/30-picking for
the rendered-content case rather than spelling out the blit-to-staging
sequence inline.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 15:42:53 +00:00
Branimir Karadžić f3ad0e91af Removed bgfx::weldVertices. (#3659) 2026-04-13 01:30:57 +00:00