Commit Graph

160 Commits

Author SHA1 Message Date
Бранимир Караџић
1c73c1a64a Fixed wasm build. 2023-12-15 07:55:48 -08:00
Бранимир Караџић
49c0e49527
Removed WebGPU. (#3198) 2023-11-09 17:15:22 -08: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
IchorDev
cbd83f57ca
New auto-generated D bindings (#3114)
* Added shaderc default defines to docs

* Update tools.rst

* Update tools.rst

* WIP new D bindings

* New bindings "nearly done"

* More unfinished changes

* Nearly done; ctors still don't work

* Bindings auto-generation is done

* New auto-generated D bindings

* Reduced D bindings file count back to 2

---------

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2023-06-26 11:21:22 -07:00
Бранимир Караџић
466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
Biswapriyo Nath
82ad2eac7a
clang-mingw: Enable building tools and examples (#2928)
Add comdlg32 library for GetOpenFileNameA API.
2022-09-18 20:11:51 -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
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
Sandy
651432df1d
examples: Add imageformats example (#2872)
* examples: Add imageformats example

Example which renders RGBA color wheel, alpha gradient and full value channel textures to
catch conversion errors and bad internal type representations between different backend
renderers.

The example uses bimg to convert from a master texture to different textures.

Each texture is rendered in an ImGui list using `ImGui::Image`. A close-up is visible
when hovering over each image.

U and I textures are skipped because they don't work for sampling.
Compressed textures are skipped because they don't have conversion functions.
Depth textures are not rendered because they don't work with channels.

* pixelformats: Present texture format in table

* Update pixelformats.cpp

* Update pixelformats.cpp

* pixelformats: Update screenshot

* pixelformats: Add checkerboard background

Co-authored-by: Michał Cichoń <michcic@gmail.com>
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2022-08-22 12:16:58 -07:00
Бранимир Караџић
6cf243f469 Cleanup. 2022-06-04 11:03:41 -07:00
Бранимир Караџић
05b60be3c2 Remove 17-drawstress from Emscripten build. 2022-06-02 12:03:01 -07:00
Catalin Moldovan
21f5f941bb
Added zig bindings generation (#2757) 2022-04-03 18:42:43 -07:00
Бранимир Караџић
6940ddd85e Cleanup. 2022-03-31 20:21:32 -07:00
luzpaz
6875e96bcb
Fix various typos (#2719)
Found via `codespell -q 3 -S ./3rdparty,*.ttf -L attribut,ba,clude,conly,indext,inout,lod,nclude,retur,utput`
2022-02-05 11:34:15 -08:00
Бранимир Караџић
4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
Бранимир Караџић
949142a75f Metal: Added GPU vendorId/deviceId detection. Fixed #2688. 2021-12-19 23:11:33 -08:00
Branimir Karadžić
00df353f0b Fixed project groups. 2021-10-26 20:13:30 -07:00
Бранимир Караџић
8392a44b3a Fixed assert macros, and improved error handling. 2021-10-25 18:59:32 -07:00
Branimir Karadžić
b7213445db Added 46-fsr example. 2021-10-06 17:40:57 -07:00
Branimir Karadžić
1401a5333d 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
Hugo Amnov
a515dd3c3d
WebGPU update (#2364)
* Update WebGPU renderer to match new state of API

* Update WebGPU files
2021-01-19 15:18:30 -08:00
Бранимир Караџић
af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
Branimir Karadžić
4c18b80c9d 44-sss: Built shaders and added example to GENie script. 2021-01-10 11:24:28 -08:00
Branimir Karadžić
4760628bb1 43-denoise: Added shaders. 2021-01-02 10:46:43 -08:00
Бранимир Караџић
76f3e0590f OSX: Added separate osx-arm64 build configuration. 2020-12-31 18:17:39 -08:00
Aleš Mlakar
93f0cdfaf4
IDL Beef bindings (#2290)
Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
2020-10-19 06:54:18 -07:00
Бранимир Караџић
86402fec24 Updated version number. 2020-09-05 11:24:50 -07:00
Johan Sköld
74aae908ce
Updating xcode config. (#2198)
Changing the xcode platform to just `Native`. This lets xcode handle
all the target stuff, and works regardless of target.
2020-07-11 20:40:33 -07:00
Christophe Dehais
4a0b6dc3ff
Package runtime data alongside HTML5 examples (#2173)
Co-authored-by: Christophe Dehais <christophe.dehais@fittingbox.com>
2020-06-18 10:32:10 -07:00
云风
be95d12307
Add examples 42 : BunnyLOD (#2155) 2020-05-30 10:49:06 -07:00
云风
79166dfe17
Allow passing config macros from env (#2147) 2020-05-17 21:04:31 -07:00
juj
098e6194d9
Update examples to build on Emscripten Wasm. Add separate wasm and wasm2js targets. (#2145) 2020-05-16 19:45:55 -07:00
Бранимир Караџић
e08de6dd2c Fixed GENie script when action is not specified. 2020-05-10 22:15:06 -07:00
Бранимир Караџић
bbd41124b7 Cleanup. 2020-05-09 10:24:23 -07:00
Hugo Amnov
b62302631e
Add Webgpu backend (#2132)
* WebGPU first draft (shaderc bin version 8)

* WebGPU scripts
2020-05-08 08:53:53 -07:00
Бранимир Караџић
c306e3b4bf Added bgfx version number. 2020-04-01 20:50:44 -07:00
Бранимир Караџић
54dc5e3ae7 Removed support for SteamLink (discontinued 11/2018). 2020-03-11 21:51:55 -07:00
Vladimir Vukicevic
8165a837a7 CSharp bindings: move DllName definition to other, optional file 2020-02-05 18:31:31 -08:00
Hugo Amiard
c4de3593de Cleanup Emscripten toolchain 2020-01-18 21:58:19 -08:00
Бранимир Караџић
82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Ari Vuollet
8431576b80 Add D language bindings generator (#1907) 2019-10-09 07:23:17 -07:00
Бранимир Караџић
a5898b131b examples: Added documentation link. 2019-08-14 21:19:03 -07:00
DanielGavin
caccb56707 example 41-tess (#1821)
* new example

new tess example

* renaming

Rename clock to counter...

* clean

Remove comments

* clean up

removed vector and const char* path

* ups

Removing compiled shaders...
2019-07-20 17:04:35 -07:00
Бранимир Караџић
28b8040cd5 IDL: Renamed csharp to bindings-cs. 2019-07-06 09:47:45 -07:00
Бранимир Караџић
7d047dfc5b Added C# bindings. 2019-07-04 16:46:25 -07:00
Бранимир Караџић
c4a5103be2 IDL: Combine State, Stencil, Buffer, Texture, Sampler, and Reset states. 2019-07-03 16:46:17 -07:00
Бранимир Караџић
69072067ef WIP: IDL C# bindings. 2019-07-03 09:09:59 -07:00
Attila Kocsis
d6b3fcccc0 added geometryv 2019-06-19 21:37:35 +02:00
Бранимир Караџић
1b524195d7 Revert "OSX: Fixed GLFW3 linkage."
This reverts commit 9aa77262dd.
2019-05-25 19:21:58 -07:00
Бранимир Караџић
9aa77262dd OSX: Fixed GLFW3 linkage. 2019-05-25 17:13:55 -07:00