Бранимир Караџић
af12904d8c
Noop: Added missing caps.
2024-06-28 08:16:26 -07:00
Бранимир Караџић
2529e1abc7
Sorted caps.
2024-06-28 08:16:09 -07:00
Daniel Kalmar
14750e1392
Minimal changes for Vulkan support on NX. ( #3317 )
2024-06-25 07:19:59 -07:00
Faaux
93961afcfd
Use correct GLSL shader version if onyl gl_VertexID is used ( #3315 )
2024-06-23 08:59:37 -07:00
Бранимир Караџић
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
Бранимир Караџић
a02d9b541b
Updated version.
2024-06-15 10:34:51 -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
Бранимир Караџић
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
mclohessy
5c17eb6836
Support /Zc:preprocessor on MSVC for standard compliant preprocessor. ( #3294 )
2024-05-16 08:02:00 -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
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
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
Бранимир Караџић
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
Бранимир Караџић
3afb43090f
Fixed #3274 .
2024-04-02 07:50:19 -07:00
Бранимир Караџић
632489bef5
Fixed #3274 .
2024-04-01 09:51:57 -07:00
Бранимир Караџић
0244cc4af2
Updated version.
2024-03-29 17:17:31 -07:00
Бранимир Караџић
2ad67a4dfd
Cleanup.
2024-03-29 16:36:55 -07:00
Бранимир Караџић
8ec4b71303
D3D11: Made use staging buffer configurable.
2024-03-28 09:49:02 -07:00
IchorDev
4cb7b7138a
Fix dispatch_indirect still using uint16_t in bgfx.idl ( #3268 )
...
* Fix error in dynamic version of D bindings
Dazed and confused but trying to continue
* Fix dispatch_indirect still using uint16_t in bgfx.idl
2024-03-12 08:01:27 -07:00
Бранимир Караџић
8778d4d1cf
Cleanup.
2024-03-10 07:43:26 -07:00
Krimo
4d8f0f6713
Fix vertex attributes having incorrect state when restarting BGFX. ( #3267 )
2024-03-10 07:41:21 -07:00
pheonix
0b049d4897
Use bx::bit_cast where appropriate for type punning, applying packed struct for arrays when necessary ( #3212 )
2024-02-24 15:47:04 -08:00
Branimir Karadžić
98d88d9fc6
Fixed draw indirect.
2024-02-09 20:55:44 -08:00
Бранимир Караџић
6286da0eb5
GL: Recreate VAO on swap chain switch. Fixed issue #209 .
2024-02-02 14:19:28 -08:00
Kitchen
d9e184501f
metal use MTLPixelFormatDepth16Unorm for D16 format ( #3246 )
2024-02-01 07:06:10 -08:00
Бранимир Караџић
b927f9e187
Use 32-bit arguments for indirect draw APIs.
2024-01-26 20:18:24 -08:00
Бранимир Караџић
f421348760
Updated version.
2024-01-14 18:22:39 -08:00
Бранимир Караџић
83dfadf673
Happy New Year!
2024-01-14 01:56: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
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
Jamil Halabi
f91c6faaf2
Fixed calcNumMips for non-power-of-2 texture dimensions ( #3219 )
2023-12-11 07:39:02 -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
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
Бранимир Караџић
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
Бранимир Караџић
2d17b36a61
Cleanup.
2023-11-23 09:42:25 -08:00
Бранимир Караџић
cf440e29f3
Use bx::assertFunction in BGFX_ASSERT.
2023-11-13 20:57:54 -08:00