Commit Graph

8771 Commits

Author SHA1 Message Date
Бранимир Караџић
06d0e2af2f Cleanup. 2024-06-21 07:37:44 -07: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
Бранимир Караџић
d9c74e9412 Removed bx.h dependency for embedded shader. 2024-06-16 09:41:16 -07:00
Бранимир Караџић
4c74c06661 Cleanup. 2024-06-15 20:23:44 -07:00
Бранимир Караџић
32866e9e75 texturev: Added horizontal and vertical flip. 2024-06-15 17:14:24 -07:00
Бранимир Караџић
acfad63e8f Cleanup. 2024-06-15 16:53:08 -07:00
Branimir Karadžić
d1feabe319 Rebuilt shaders. 2024-06-15 14:47:08 -07:00
Бранимир Караџић
72d5832998 spirv-tools: Disable bad validation. 2024-06-15 12:40:50 -07:00
Бранимир Караџић
a02d9b541b Updated version. 2024-06-15 10:34:51 -07:00
Бранимир Караџић
f37ffe9750 Updated Vulkan headers. 2024-06-15 10:34:17 -07:00
Бранимир Караџић
e5ffd1ede8 Updated spirv-cross. 2024-06-15 10:33:47 -07:00
Бранимир Караџић
ba632e83b8 Updated spirv-tools. 2024-06-15 10:33:35 -07:00
Бранимир Караџић
2ca2bbc20e Updated spirv-headers. 2024-06-15 10:33:24 -07:00
Бранимир Караџић
ad28ab88ab Updated glslang. 2024-06-15 10:33:05 -07:00
Бранимир Караџић
ee481af66c Updated meshoptimizer. 2024-06-15 10:29:43 -07:00
Бранимир Караџић
961bbfa295 Updated cgltf. 2024-06-15 10:29:36 -07:00
Бранимир Караџић
739b1156e7 Updated ImGui. 2024-06-15 10:28:55 -07:00
Branimir Karadžić
8432a0a76d MSVC: Enable preprocessor conformance mode. 2024-06-15 10:14:01 -07:00
Бранимир Караџић
9547e79867 VK: Disabled allocator callbacks. 2024-06-13 20:32:12 -07:00
Бранимир Караџић
61c770b0f5 Added option to build bimg with libheif. 2024-06-11 17:58:57 -07:00
Бранимир Караџић
b66f60cba0 Cleanup. 2024-06-05 20:27:29 -07:00
Martijn Courteaux
763732e828
Make the semaphore pool larger, such that there are enough for any number of swapchain images AND frames in flight. (#3307) 2024-06-05 20:24:31 -07:00
Бранимир Караџић
eedda8e5cf VK: Added latency info. 2024-06-05 15:43:41 -07:00
Tao
0ba23f9b13
Fix adapter object leak when there are more than 4 graphics cards (#3306)
when my computer have more than 4 gpu, it's debug break on
2024-06-05 07:33:49 -07:00
Бранимир Караџић
530a558b11 Cleanup. 2024-06-03 08:27:44 -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
Бранимир Караџић
00fa5ad179 Updated SPIR-V shaders. 2024-05-27 22:32:47 -07:00
Бранимир Караџић
793a426d6d Updated Vulkan headers. 2024-05-27 21:10:50 -07:00
Бранимир Караџић
ad4a3e095b Updated spirv-cross. 2024-05-27 21:10:01 -07:00
Бранимир Караџић
aace41236f Updated spirv-tools. 2024-05-27 21:09:50 -07:00
Бранимир Караџић
962e48febe Updated spirv-headers. 2024-05-27 21:09:41 -07:00
Бранимир Караџић
3e2188c27d Updated glslang. 2024-05-27 21:09:28 -07:00
Бранимир Караџић
887dbc8ffe Updated cgltf. 2024-05-27 19:52:14 -07:00
Бранимир Караџић
c08fa3da56 Updated ImGui. 2024-05-27 19:49:43 -07:00
Бранимир Караџић
da5f27f9ce X11: Workaround DISPLAY not being set. 2024-05-25 09:10:05 -07:00
Бранимир Караџић
87fd766c33 shaderc: Fix integer vecs. 2024-05-24 16:42:41 -07:00
Бранимир Караџић
4f1728dfb8 Updated README. 2024-05-17 18:57:14 -07:00
mclohessy
5c17eb6836
Support /Zc:preprocessor on MSVC for standard compliant preprocessor. (#3294) 2024-05-16 08:02:00 -07:00
Alastair
3bcaaccd29
use BX_MAKEFOURCC in shaderc_hlsl.cpp (#3293) 2024-05-13 12:06:34 -07:00
Бранимир Караџић
662071f333 Cleanup. 2024-05-11 22:02:23 -07:00
Бранимир Караџић
cbdc8bf77c Cleanup. 2024-05-10 07:37:28 -07:00
Nikolay Ivanov
2d17b9866b
Fixed incorrect mipmap generation on Vulkan for Cubemaps (#3236) (#3290) 2024-05-10 07:34:44 -07:00
Бранимир Караџић
3a116a90e5 Fixed docs. 2024-05-04 23:58:36 -07:00
kschoice-fr
2dfc9d14b6
Changes to API reference (#3286)
* Update bgfx.rst

Added Texture Flags BGFX_TEXTURE_* in Textures section under TextureFormat

* Update bgfx.h

Added a specific mention that Texture creation BGFX_TEXTURE_* flags can be used, in both relevant createFrameBuffer prototypes
2024-05-04 23:52:43 -07:00
Martijn Courteaux
1437b5c966
Restore support for older macOS/iOS version. Determine features at init, and use at runtime. (#3284)
* Restore support for older macOS/iOS version. Determine features at init, and use at runtime.

* Fix typo for visionOS macro expansion.

* Silence warnings with pragmas and pointer casts where possible.

* Pragma macros.
2024-05-03 07:35:20 -07:00
Бранимир Караџић
9d9ca4f8f6 Cleanup. 2024-05-02 20:00:58 -07:00
João Matos
57d8a0838b
Fixes Emscripten wasm64 compile error in glcontext_html5.cpp. (#3282)
Fixes compile error:

```
glcontext_html5.cpp:74:45: error: cast from pointer to smaller type
'EMSCRIPTEN_WEBGL_CONTEXT_HANDLE' (aka 'int') loses information
74 |                 EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context =
reinterpret_cast<EMSCRIPTEN_WEBGL_CONTEXT_HANDLE>(g_platformData.context);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
2024-04-30 07:16:20 -07:00
Aleksandr Bazhin
1138cc0cc9
Examples: change order of calls in loadTexture() (#3281)
Fixes possible concurrency issue - makes code usable in a multithreaded environment. imageReleasCb releases imageContainer after bgfx::createTexture...() is called. If bgfx::frame() is called from another thread, the release can happen before imageContainer is used in bgfx::calcTextureSize(), leading to a crash. Although loadTexture() is not used in multithreaded environment in the examples, calling bgfx::calcTextureSize() before bgfx::createTexture...() is a better reference for users.
2024-04-24 21:25:35 -07:00
Бранимир Караџић
932302d8f4 Compute: Rename Write Only suffix _WR to _WO. 2024-04-18 10:07:40 -07:00
Martijn Courteaux
0ed3ac95aa
More vulkan profiling. (#3279) 2024-04-17 07:24:11 -07:00