Commit Graph

2203 Commits

Author SHA1 Message Date
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
Бранимир Караџић
f14c14a485
Removed D3D9. (#3191) 2023-11-03 21:15:42 -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ć
8abb775f45 Cleanup. 2023-09-30 16:54:57 -07: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
Бранимир Караџић
5bc450408c Updated ImGui. 2023-07-01 08:16:39 -07:00
Бранимир Караџић
43aa2b6bca Cleanup. 2023-06-30 18:38:59 -07:00
Branimir Karadžić
75fc6aeb4a Added clear rect test. 2023-06-23 20:17:56 -07:00
云风
498c34273b
Larger debug text for retina display (#3109)
* Add Init.Resolution.scaleDebug

* clamp scale to BGFX_CONFIG_MAX_SCALE_DEBUG

* update version

* Use textWdith/textHeight in helloworld
2023-06-13 18:17:38 -07:00
Бранимир Караџић
eb3405158a Cleanup. 2023-05-23 22:03:07 -07:00
Бранимир Караџић
3a0233ed50 Cleanup. 2023-05-20 18:45:17 -07:00
Branimir Karadžić
290295136b Added bx::Location, and removed allocator macros. 2023-04-23 19:19:22 -07:00
Бранимир Караџић
e9d1e3d0fe Renamed bx::init::* tags. 2023-04-22 22:22:45 -07:00
Бранимир Караџић
a3e68cd9b7 Cleanup. 2023-04-21 19:04:16 -07:00
Бранимир Караџић
d909d01734 Metal: Rebuilt shaders. 2023-04-12 19:23:57 -07:00
Бранимир Караџић
4d11ad55f3 Cleanup. 2023-04-03 07:23:49 -07:00
Бранимир Караџић
f8019cb3d4 Cleanup. 2023-03-02 21:45:20 -08:00
Francis Hart
403c4da2e0
Fix compiler warnings for nanovg wrapper (#3048)
* Fix compiler warnings for nanovg wrapper

Code for the nanovg wrapper was generating compiler warnings for
implicit casts from int32_t to uint16_t. These casts are unavoidable
due to how bgfx and nanovg APIs use different types for texture
width/height.

* Fix compiler warning from nanovg fontstash.h

This fixes some warnings for signed/unsigned comparsion
coming from the nanovg fontstash.h header.
2023-02-27 18:33:29 -08:00
Francis Hart
caa637dbd5
Expose nvgCreateBgfxTexture() helper function (#3046)
The nvgCreateBgfxTexture() helper function is already implemented in
the nanovg wrapper library, so its useful to expose this function
to the user.

Also expose the NVG_IMAGE_NODELETE flag so this can be passed to the
nvgCreateBgfxTexture() function, to indicate that the caller retains
ownership of the bgfx texture.
2023-02-27 07:10:53 -08:00
ShuangLiu1992
adb0f893a3
fix ios entry (#3027)
When initWithFrame is being called s_ctx has not been created yet. Fix with correct assign order.
2023-01-19 08:45:51 -08:00
Бранимир Караџић
466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
Бранимир Караџић
4f3ce6abcb Entry: Resize window before calling init. 2023-01-13 07:08:51 -08:00
Bryan McNett
a93a714632
fix for save file dialog in windows (#3003)
the save file dialog in windows was an open file dialog, by mistake

Co-authored-by: Bryan McNett <bryan@mcnett.org>
2022-12-23 23:00:26 -08:00
Бранимир Караџић
43296d6f3f Cleanup. 2022-12-12 07:53:08 -08:00
Бранимир Караџић
6a03a1ec5e Rebuilt Metal shaders. 2022-10-29 09:17:29 -07:00
Бранимир Караџић
0069766e61 Rebuilt SPIR-V shaders. 2022-10-29 09:03:13 -07:00
Бранимир Караџић
f8af71c4ce Rebuilt SPIR-V shaders. 2022-10-27 19:44:24 -07:00
Raziel Alphadios
c2bc5177b5
Add support for remaining unsupported ASTC formats (#2963)
* Add support for remaining unsupported ASTC formats
Add new ASTC formats into pixelformats example and ninja scripts
Rebuild ASTC textures

* Update idl and generate
Move comma in pixelformats

Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2022-10-25 17:03:40 -07:00
Бранимир Караџић
39c8d091f4 Cleanup. 2022-10-21 09:13:51 -07:00
Raziel Alphadios
4f76738e96
Add astc to ninja scripts (#2959)
Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2022-10-20 22:16:44 -07:00
pezcode
ba467be036
Add support for indirect draw with indirect count (#2925)
* Add indirect draw with indirect count (BGFX_CAPS_DRAW_INDIRECT_COUNT)

* Update bindings

* VK: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT

* D3D12: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT

* GL: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT

* 48-drawindirect: Use BGFX_CAPS_DRAW_INDIRECT_COUNT if available

* 48-drawindirect: Update shaders
2022-09-17 18:16:19 -07:00
Branimir Karadžić
408988946d Cleanup. 2022-09-16 20:12:31 -07:00
blackhole
2b11045331
Example 49 - hextile (Changes to fix regular tiling (tiling rate) to match hex tile rate) (#2924) 2022-09-16 13:48:19 -07:00
blackhole
a8a10b0b89
Adds example 49-hextile (#2922)
* First commit - tested with dx11 on windows

* Minor changes & adding some comments.

* Update hextile.cpp

* update some bin files

* rename texture

* minor comment update

* Added support to configure tile rate as well as tile rotation strength, update bin files & screenshot

* use texture from polyhaven, updated screenshot, updated bin files & minor changes to shader.

* missed pushing texture

* update license

* Update hextile.cpp

* Fix regular tiling

* use ktx with mipmaps

* minor change to ensure that regular tiling & hextile matches with default tile rate.

* minor c

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2022-09-15 19:03:07 -07:00
Бранимир Караџић
9ad3825cee D3D12: Linux build. 2022-09-14 20:59:59 -07:00
SnapperTT
4613bd1e02
Parallelised compute shader in example 48 (#2906)
* Parallelised compute shader in example 48

* Ex48 - Dispatch numToDraw/64 workgroups of 64 local threads

* fixed vs build (again)
2022-08-29 06:44:55 -07:00
SnapperTT
8d412e16e4
Fix vs build (#2904) 2022-08-27 07:35:30 -07:00
SnapperTT
135dc7fa27
Adds example 48-multidrawindirect (#2894)
* Added example 48-multidrawindirect

* Added example 48-multidrawindirect

* enable shader.mk to build directories that only have compute shaders

* compiled shaders for example 48

* MultidrawIndirect example renamed to DrawIndirect, sets draw mtx in compute

* update 48-drawindirect shaders

* fix typos

* fixed bgfx::setPlatformData change for example48

* fix docs

* added name to cs_drawindirect.sc

* style updates for example 44

* add slider to example 48-drawindirect
2022-08-26 21:32:15 -07:00
Бранимир Караџић
ed8d6da5f4 Cleanup. 2022-08-25 21:12:09 -07:00
Бранимир Караџић
72cbe83275 Removed bgfx::setPlatformData usage from entry example harness. 2022-08-25 20:07:03 -07:00
Michał Cichoń
c8c245c37b
pixelformat: Include compressed format in texture sets (#2893)
* pixelformat: Include compressed format in texture sets

* pixelformats: Show why texture preview is not shown
2022-08-25 06:51:48 -07:00
Michał Cichoń
549077fc0b
Pixelformats example mupltiple sources (#2889)
* Added texture conversion for pixelformat to runtime asset.

* pixelformats: Support multiple sources, cleanup
2022-08-23 12:51:00 -07:00
Бранимир Караџић
db0074bb3e 47-pixelformats: Improved tooltips. 2022-08-22 23:29:13 -07:00
Бранимир Караџић
c08e51441f 47-pixelformats: Scroll checkerboard. 2022-08-22 21:49:26 -07:00
Бранимир Караџић
58e82fb785 Cleanup. 2022-08-22 21:40:04 -07:00
Бранимир Караџић
aa36d167b6 47-pixelformats: Add supported/emulated info. 2022-08-22 20:57:19 -07:00