Commit Graph

8610 Commits

Author SHA1 Message Date
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
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
Branimir Karadžić
3e5bfb81b6 shaderc: Must have profile specified. 2023-09-30 16:55:00 -07:00
Branimir Karadžić
99439d296a shader.mk specify profile for all shaders. 2023-09-30 16:55:00 -07:00
Branimir Karadžić
6f2716d2f4 Rebuilt shaders. 2023-09-30 16:54:57 -07:00
Branimir Karadžić
0be9604e74 Uncomment examples. 2023-09-30 16:54:57 -07:00
Branimir Karadžić
f13a6ac8ab shaderc: Fixed GLSL profile downgrade. 2023-09-30 16:54:57 -07:00
Branimir Karadžić
8abb775f45 Cleanup. 2023-09-30 16:54:57 -07:00
jwdevel
2a9791506b
Added game to README: Pinhole Universe (#3178) 2023-09-27 15:29:54 -07:00
Бранимир Караџић
17f773007a Fixed link. 2023-09-15 08:58:34 -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
Бранимир Караџић
a3f67b6a04 Updated Khronos headers. 2023-09-04 08:26:39 -07:00
Бранимир Караџић
e2ec438633 Updated meshoptimizer. 2023-09-04 08:25:36 -07:00
Бранимир Караџић
525c89ced0 Updated spirv-cross. 2023-09-04 08:25:27 -07:00
Бранимир Караџић
14ebd15e2d Updated spirv-tools. 2023-09-04 08:25:15 -07:00
Бранимир Караџић
04b0560edb Updated spirv-headers. 2023-09-04 08:25:04 -07:00
Бранимир Караџић
cc33a884ff Updated glslang. 2023-09-04 08:24:44 -07:00
Бранимир Караџић
635381293b Updated ImGui. 2023-09-04 08:24:33 -07:00
Markus Stephanides
17ab1e2a62
Update Makefile and Build Docs from VS2017 to VS2019 (#3170)
* Update build.rst

* Update makefile
2023-09-03 12:06:01 -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
Nuno Silva
b68dc2b13e
Fix Native Window Type IDL/Bindings; (#3163) 2023-08-26 20:50:34 +02:00
Julian Sikorski
c18122226e
Fix multiple windows handling (#3162) 2023-08-22 19:12:11 +02:00
Бранимир Караџић
12d6f20880 Updated README. 2023-08-19 10:16:23 +02:00
Бранимир Караџић
5f564db0d5 macOS: Fixed deprecated warnings. 2023-08-18 09:17:17 +02:00
Julian Sikorski
0758191563
Use WL_EGL_PLATFORM consistently with Khronos (#3161) 2023-08-17 22:12:14 +02:00
Julian Sikorski
ec84ed60fc
Use BX_UNUSED for cases where Wayland is not an option (#3160) 2023-08-17 21:42:26 +02:00
Бранимир Караџић
cbfea75cfd Cleanup. 2023-08-17 19:28:22 +02:00
Julian Sikorski
f4d463990a
Allow simultaneous X11 and Wayland support (#3152)
* Allow simultaneous X11 and Wayland support

* Add NativeWindowHandleType

* Set default value for g_platformData.type

* Use g_platformData.type to check for a native Wayland window

* Stub getNativeWindowHandleType on platform where Wayland is not an option

* Implement getNativeWindowHandleType for GLFW

* Add getNativeWindowHandleType to the remaining C++ examples

* Add getNativeWindowHandleType to the C example
2023-08-17 16:54:31 +02:00
Jamil Halabi
a16f603e3c
A follow up fix for the PrimitiveID capability (#3159)
* Added a new capability to check for PrimitiveID support

* A fix for PrimitiveID capability not listed in the debug log
2023-08-15 11:33:33 +02:00
Бранимир Караџић
82b70a0230 Cleanup. 2023-08-15 09:27:39 +02:00
Jamil Halabi
64e83a0ec2
Fixed creating MoltenVk surface with agnostic backends such as SDL2 (#3158) 2023-08-15 09:21:25 +02:00