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
Бранимир Караџић
e60dab3c12
Updated bindings.
2023-11-12 09:30:22 -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
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
Branimir Karadžić
de9f4b3385
Remove unsupported platforms.
2023-11-03 21:42:02 -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
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
Carlos Carrasco
6054b49cef
fix dx12 dynamic texture array update ( #3182 )
...
Co-authored-by: Carlos <carlos@carloscarrasco.com >
2023-10-04 09:03:37 -07:00
issam3105
66d50eb721
Fixed duplicate import of functions on Linux using gles20 ( #3117 )
...
Co-authored-by: Issam <issam.dahmen@fittingbox.com >
2023-09-09 08:25:07 -07:00
Hristo Iliev
98f16cd125
Fix an issue where initializing DX11 headless would cause a crash. ( #3164 )
2023-08-29 05:07:37 +02:00
Julian Sikorski
c18122226e
Fix multiple windows handling ( #3162 )
2023-08-22 19:12:11 +02:00