Commit Graph

8840 Commits

Author SHA1 Message Date
IchorDev
07be0f213a
Fix error in dynamic version of D bindings (#3215)
Dazed and confused but trying to continue
2023-12-06 07:39:24 -08:00
attilaz
7b8aa2ec75
Fixes metal texture/buffer binding issue (#3214)
Fixes metal texture/buffer binding when when the same resource is bound to both (vertex and fragment) stages

https://github.com/bkaradzic/bgfx/issues/3024
2023-12-04 07:37:39 -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
IchorDev
ae4b0cd5a9
Fix random, erroneous D binding type generation; add missing IDL defaults (#3210)
* Reformatted comments; fixed a couple of oversights

* D bindings: deterministic sub-struct order

* Added missing default to IDL

* Fixed sub-struct linkage; regenerate D binds

* Culled D bindings for header-only C++ functions

* Added missing default to bgfx.idl

* cppinline now supported by all auto-gen bindings

The pattern "func.cppinline and not func.conly" is to make sure that C bindings for `bgfx_vertex_layout_has` are still generated.

* Fix mangling issue; use updated BindBC-Common API

* Add missing default to setTransform in IDL

* Fix erroneous generation of `uc_int64`

Non-deterministic ordering of hash-maps were the culprit all along!

* Add missing default to overrideInternal IDL & re-generate
2023-12-02 10:19:45 -08:00
Бранимир Караџић
7af65cbbfc Cleanup. 2023-12-01 22:47:06 -08:00
Бранимир Караџић
f828394d7a Cleanup. 2023-12-01 22:42:58 -08:00
Бранимир Караџић
edb72488bc macOS: Fixed VK (MoltenVK 1.2.6). 2023-12-01 20:51:28 -08:00
Бранимир Караџић
5de37d0e22 Updated ImGui. 2023-11-27 22:38:45 -08:00
Бранимир Караџић
20ef92602a Updated vulkan headers. 2023-11-27 22:36:46 -08:00
Бранимир Караџић
12179f9060 Updated spirv-cross. 2023-11-27 22:28:32 -08:00
Бранимир Караџић
e9091ebd3e Updated spirv-tools. 2023-11-27 22:28:22 -08:00
Бранимир Караџић
95e262634b Updated spirv-headers. 2023-11-27 22:28:13 -08:00
Бранимир Караџић
0c8292f2af Updated glslang. 2023-11-27 22:27:59 -08:00
Бранимир Караџић
d0aede13ec Updated meshoptimizer. 2023-11-27 22:27:43 -08:00
Бранимир Караџић
2b136890a2 Updated cgltf. 2023-11-27 22:27:36 -08:00
Martijn Courteaux
6dea6a22b6
Fixes #1671 and Fixes #1139. Flush the nanovg draw commands whenever the next draw would overflow the uint16_t index type. (#3207) 2023-11-25 09:23:05 -08:00
Бранимир Караџић
2d17b36a61 Cleanup. 2023-11-23 09:42:25 -08:00
Бранимир Караџић
1a329595aa Clarified docs about requirement to use command line tool to compile shaders. 2023-11-22 23:14:48 -08:00
00bins
bd0cd504f6
Fix incorrect psslShaderPreamble in compute shader (#3206) 2023-11-21 19:33:33 -08:00
Бранимир Караџић
7abef01714 Updated ImGui. 2023-11-15 19:19:13 -08:00
Бранимир Караџић
cf440e29f3 Use bx::assertFunction in BGFX_ASSERT. 2023-11-13 20:57:54 -08:00
Бранимир Караџић
e60dab3c12 Updated bindings. 2023-11-12 09:30:22 -08:00
IchorDev
9612f6d147
D bindings: fix mangling error, use improved BindBC-Common API (#3201)
* Reformatted comments; fixed a couple of oversights

* D bindings: deterministic sub-struct order

* Added missing default to IDL

* Fixed sub-struct linkage; regenerate D binds

* Culled D bindings for header-only C++ functions

* Added missing default to bgfx.idl

* cppinline now supported by all auto-gen bindings

The pattern "func.cppinline and not func.conly" is to make sure that C bindings for `bgfx_vertex_layout_has` are still generated.

* Fix mangling issue; use updated BindBC-Common API
2023-11-12 09:28:41 -08:00
Бранимир Караџић
49c0e49527
Removed WebGPU. (#3198) 2023-11-09 17:15:22 -08:00
Бранимир Караџић
67107e5511 Cleanup. 2023-11-09 07:26:23 -08:00
Nacho García
466e87fc0e
Fix DX12 backend ignoring Init::PlatformData::context (#3197) 2023-11-08 13:31:34 -08:00
Branimir Karadžić
c54063b88c Updated texture. 2023-11-08 07:14:30 -08:00
Branimir Karadžić
1e800e8ba9 Rebuilt assets. 2023-11-06 21:37:19 -08:00
Edu Garcia
106add8505
Add Wadjet Eye Games to README.md (#3196) 2023-11-06 11:15:36 -08:00
Edu Garcia
13d1f19947
Fix D3D12 VBV reading size (#3194)
* Fix D3D12 VBV reading size

When `stream.m_startVertex` is not 0 we target a position past the start of the buffer, so `BufferLocation + SizeInBytes` will be past the end of the buffer, which the debug layer will complaining about.

With this fix we're only creating a view for the part of the buffer we actually need to access.

* Reordered buffer size calculation.

---------

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2023-11-06 11:15:22 -08:00
Edu Garcia
b01c5d597a
Enable debug information for Vulkan shaders (#3193)
* Enable debug information for Vulkan shaders

* Enable debug information for Metal shaders
2023-11-06 11:14:29 -08:00
Aleksandr Bazhin
a23b128ae2
Fix kerning for SDF scaled fonts in font_manager.cpp (#3192)
Kerning is now also scaled with the scaled child font when using SDF fonts. In examples/common/font_manager.cpp kerning was visibly off when scaling SDF font down.
2023-11-05 09:13:52 -08:00
Branimir Karadžić
de9f4b3385 Remove unsupported platforms. 2023-11-03 21:42:02 -07:00
Branimir Karadžić
4946079f1d Cleanup. 2023-11-03 21:36:00 -07:00
Бранимир Караџић
74f9705f52 Updated version. 2023-11-03 21:18:00 -07:00
Бранимир Караџић
f14c14a485
Removed D3D9. (#3191) 2023-11-03 21:15:42 -07:00
Бранимир Караџић
6a914f5b13 Updated ImGui. 2023-11-03 17:51:30 -07:00
Бранимир Караџић
c9cebd1b23 Updated spirv-cross. 2023-11-03 17:50:28 -07:00
Бранимир Караџић
3e82b5bd67 Updated spirv-tools. 2023-11-03 17:50:15 -07:00
Бранимир Караџић
a651b93fac Updated spirv-headers. 2023-11-03 17:50:03 -07:00
Бранимир Караџић
8b9afdef85 Updated glslang. 2023-11-03 17:49:51 -07:00
Бранимир Караџић
0d6d961680 Updated meshoptimizer. 2023-11-03 17:49:42 -07:00
Бранимир Караџић
fe578a3323 Updated cgltf. 2023-11-03 17:49:32 -07:00
Бранимир Караџић
9d4b897dc0 Updated docs. 2023-10-27 22:06:44 -07:00
gamecoder-nz
66b020e939
Fixed issue where printing profile names prints unreadable characters (#3188)
* Fixed issue where printing profile names prints unreadable characters

* Use %S for StringLitera.

---------

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2023-10-23 20:44:51 -07:00
Fabio Soldati
e8f51dea4c
fixed wrong cast uint16t to uint32t (#3187)
The new Google Pixel 8 device supports maxTextureSize of 65535. The current implementation sets this value to 0 and lets crash my app. With the cast to uint32t the app works correctly again.
2023-10-23 08:01:22 -07:00
Бранимир Караџић
448a42a8c6 Cleanup. 2023-10-17 07:37:29 -07:00
Yanna
d952e5cfb3
Check nativeWindow pointer before dereferencing (#3185)
Fix access violation in headless mode during bgfx::shutdown().
This pointer is usually set by the SwapChainPanel which doesn't exist
in headless mode.

Co-authored-by: Yanna Kang <yaka@microsoft.com>
2023-10-16 11:25:15 -07:00
Gareth Fare
7c440b339f
Small fix on soname defining on ldflags for Android examples. (#3184)
* Add linker options to add SONAME to the linked target so Android apps can dynamically resolve the library location from known locations (as opposed to a hard coded location often residing on the host cross compiling filesystem.

linked issue is,

https://github.com/bkaradzic/bgfx/pull/2176

* Kepp orginal code for linkoptions in the previous configuration block and add the additional linker flags for each Debug/Release configuration.

* Add comma character to EOL to match orginal code.
2023-10-16 09:48:50 -07:00