Commit Graph

806 Commits

Author SHA1 Message Date
Branimir Karadžić
868c66e1ed Added WebGPU. (#3544) 2026-01-10 04:09:39 +00:00
Branimir Karadžić
ae944eea43 Fixed MSAA texture validation. (#3529) 2025-12-31 22:30:19 +00:00
Бранимир Караџић
d19f3a5222 Validate that texutre supports MSAA. 2025-12-28 18:26:47 -08:00
Branimir Karadžić
241e9c3330 Added Init.fallback option. Cleanup. (#3522) 2025-12-24 04:29:32 +00:00
Branimir Karadžić
23410d248c Fixed build.a (#3513) 2025-12-13 20:46:12 +00:00
Branimir Karadžić
d396404fd3 Added Superluminal Profiler support. (#3504) 2025-11-21 19:08:12 +00:00
Бранимир Караџић
8a6a40108a Improved profiler colors. 2025-11-21 10:31:54 -08:00
Branimir Karadžić
f888f9d9a4 Fixed per view uniform order, and added more validation. (#3497) 2025-11-14 15:56:46 +00:00
Branimir Karadžić
35911ac2d9 Added uniform frequency. (#3485)
* Added uniform frequency.

* Cleanup.

* Cleanup.
2025-11-10 23:41:33 +00:00
Бранимир Караџић
8a9bc3ed65 EGL: Improved initialization. 2025-11-08 20:16:08 -08:00
Бранимир Караџић
358223c63e Added variable rate shading. 2025-11-06 17:21:53 -08:00
Бранимир Караџић
45df9833a9 Metal: Added ability to make capture programmatically. 2025-11-05 13:45:20 -08:00
Branimir Karadžić
5d8eb6d67c Cleanup. 2025-10-31 08:44:02 -07:00
Бранимир Караџић
6b84a02e26 Metal: Improve release macros to keep track of refcount. 2025-10-30 10:13:32 -07:00
ProPuke
df53a7ca84 Fixed: BGFX_TEXTURE_MSAA_SAMPLE and msaa sampling bugs with gl (#3351)
* fixed: multiple BGFX_TEXTURE_MSAA_SAMPLE attachments could not be present in a framebuffer at once (sample locations were not fixed)
I've just set the sample location as always fixed for now, although technically this can be false if only 1 msaa texture attachment is present

* fixed: framebuffer with a resolved msaa AND a sample msaa at the same time would result in an invalid framebuffer
it would try to also resolve the sample-msaa texture at the same, leading to an invalid target type

* fixed: depth attachments could not be sample-msaa
this is valid, they don't resolving

* fixed: shader error sampking msaa textures in gl
parameter duplication on texelFetch(sampler2DMS,*) led to failed shaders
2025-10-30 00:29:36 +00: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
Бранимир Караџић
52bac63cd7 Updated RenderDoc interface. 2025-10-26 22:43:43 -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ć
a85a76c484 Fixed build. 2025-10-23 12:42:45 -07:00
Бранимир Караџић
89e24f1849 Fixed Android build. 2025-10-23 12:39:42 -07:00
Бранимир Караџић
577db969fb Removed unused code. 2025-10-20 16:15:30 -07:00
Branimir Karadžić
5eeed00aaa Replaced use of dynamic StringT with FixedStringT. 2025-09-19 20:38:26 -07:00
Branimir Karadžić
0c4e7e2283 Fixed warning. 2025-09-14 10:36:01 -07:00
korsil
2e73bbb962 fix blit dstDepth calculation using src.m_numLayers instead of dst.m_numLayers (#3460) 2025-09-14 15:48:36 +00:00
Vincent Bousquet
d763739516 Fix blitting between texture array layers (#3428) 2025-05-31 00:46:12 +00:00
Luigi Malomo
c8f237a39b Add u_invModelView uniform to shader and documentation (#3421) 2025-04-11 23:54:42 +00:00
Бранимир Караџић
72f9b8b516 Workaround VK scratch buffer issue. 2025-03-29 08:21:28 -07:00
Martijn Courteaux
abe193a407 Fix UniformBuffer UB regarding UniformType::Enum with extra bits. (#3398) 2025-01-28 09:58:22 -08:00
Бранимир Караџић
860bafb23f Happy New Year! 2025-01-13 15:45:40 -08:00
Бранимир Караџић
7b3e1ebf62 Revert "Fix: Fix Uniform buffer doing too many iterations when updating rende…" (#3391)
This reverts commit 4bc652939f.
2024-12-31 09:07:30 -08:00
Бранимир Караџић
896c610b72 Removing alloca compat include. 2024-12-21 19:25:00 -08:00
Бранимир Караџић
042ebe8814 Cleanup. 2024-12-07 22:49:45 -08:00
Бранимир Караџић
4372a1f56c Assert on OOM. 2024-11-19 16:41:35 -08:00
Nuno Silva
4bc652939f Fix: Fix Uniform buffer doing too many iterations when updating renderer uniforms (#3372) 2024-11-10 20:30:45 -08:00
Martijn Courteaux
1109f3c5bf Vulkan: improve staging data performance by using scratch buffers per frame. (#3295)
* Vulkan: improve staging data performance by using scratch buffers per frame.

* vulkan: Add alignment parameter to request scratch space.

* Align staging buffers to texel block size.

* Fix scratch buffer allocation bug.

* Fix some non-deterministic behavior found by Valgrind. Paranoid printing.

* Remove debugging printing

* Fix alignment of converted formats.

* Remove forgotten debug print.
2024-06-21 07:32:00 -07:00
Oskar Kwaśniewski
3195593d8d feat: base visionOS bgfx implementation (#3289)
Co-authored-by: mani3xis <mariusz.pas+dev@protonmail.com>

fix: properly set storageMode

cleanup: remove unused variables

fix crash while releasing m_drawable on visionOS

fix: remove unused timing variable

fix: file name cases, cleanup

feat: integrate visionOS into bgfx examples
2024-06-03 08:14:53 -07:00
Бранимир Караџић
2ad67a4dfd Cleanup. 2024-03-29 16:36:55 -07:00
Branimir Karadžić
98d88d9fc6 Fixed draw indirect. 2024-02-09 20:55:44 -08:00
Бранимир Караџић
b927f9e187 Use 32-bit arguments for indirect draw APIs. 2024-01-26 20:18:24 -08:00
Бранимир Караџић
83dfadf673 Happy New Year! 2024-01-14 01:56:36 -08:00
Raziel Alphadios
f4a9bfc4bc Fix D3D12 debug crash due to validation layers SDK bug (#3222)
* Fix D3D12 debug crash due to validation layers SDK bug

* Change LONG to FARPROC to be technically correct

* Make requested changes:
Move windows version checking to function in bgfx.cpp
Change windowsVersionIs to also use this technique
Use bgfx code style
Specify dwOSVersionInfoSize prior to calling rtlGetVersion

* Merge both functions into one
Use bx::dlsym instead of GetProcAddress directly
Fix major & minor comparison logic

* Fix win10 version comment

* Revert rendererCreate check back to Win 0x0602

* Clean up logic as per suggestion
2023-12-13 19:20:07 -08:00
Бранимир Караџић
e9e2e224ee Replaced macros with C++17 attributes. 2023-12-02 20:16:56 -08:00
Бранимир Караџић
837803454a Cleanup. 2023-12-02 10:35:17 -08:00
Бранимир Караџић
edb72488bc macOS: Fixed VK (MoltenVK 1.2.6). 2023-12-01 20:51:28 -08:00
Бранимир Караџић
49c0e49527 Removed WebGPU. (#3198) 2023-11-09 17:15:22 -08:00
Бранимир Караџић
f14c14a485 Removed D3D9. (#3191) 2023-11-03 21:15:42 -07:00
Julian Sikorski
f4d463990a Allow simultaneous X11 and Wayland support (#3152)
* Allow simultaneous X11 and Wayland support

* Add NativeWindowHandleType

* Set default value for g_platformData.type

* Use g_platformData.type to check for a native Wayland window

* Stub getNativeWindowHandleType on platform where Wayland is not an option

* Implement getNativeWindowHandleType for GLFW

* Add getNativeWindowHandleType to the remaining C++ examples

* Add getNativeWindowHandleType to the C example
2023-08-17 16:54:31 +02:00
Jamil Halabi
a16f603e3c A follow up fix for the PrimitiveID capability (#3159)
* Added a new capability to check for PrimitiveID support

* A fix for PrimitiveID capability not listed in the debug log
2023-08-15 11:33:33 +02:00