Commit Graph

8755 Commits

Author SHA1 Message Date
Бранимир Караџић
9640d461ac Updated meshoptimizer. 2023-12-22 18:14:49 -08:00
Бранимир Караџић
f07a164880 Updated cgltf. 2023-12-22 18:14:36 -08:00
Dmitry Shevchik
a0057adaaa
Support compute shaders for OpenGLES 3.1 by injecting a proper version. (#3224) 2023-12-16 09:21:04 -08:00
Бранимир Караџић
1c73c1a64a Fixed wasm build. 2023-12-15 07:55:48 -08:00
Бранимир Караџић
5b8a8ba3da Fix wasm build. 2023-12-15 07:37:08 -08:00
attilaz
8482561df4
Update README.md (#3223)
Updated to latest trailer of 'Off The Road' mobile game
2023-12-15 07:23:03 -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
Бранимир Караџић
e2631c1a56 CI is annoying... 2023-12-12 22:26:39 -08:00
Бранимир Караџић
51f50e7e0b Revert "CI: We care only about macOS ARM64."
This reverts commit 9c21f0ce00.
2023-12-12 21:28:07 -08:00
Бранимир Караџић
9c21f0ce00 CI: We care only about macOS ARM64. 2023-12-12 20:53:15 -08:00
Бранимир Караџић
878104f55e CI: macos-13. 2023-12-12 20:44:53 -08:00
Бранимир Караџић
1c08acaf41 Updated macOS/iOS version info. 2023-12-12 19:18:41 -08:00
Jamil Halabi
f91c6faaf2
Fixed calcNumMips for non-power-of-2 texture dimensions (#3219) 2023-12-11 07:39:02 -08:00
Бранимир Караџић
ad625918eb texturev: Fixed mime type assocation on Linux. 2023-12-08 23:27:43 -08:00
Justin Boswell
db40a04a08
Minor changes to support Clang on Windows (#3216)
* Minor changes to support Clang on Windows

* Use _MSC_VER instead of BX_PLATFORM_WINDOWS
2023-12-06 17:42:01 -08:00
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