Commit Graph

8295 Commits

Author SHA1 Message Date
Бранимир Караџић
d30032984b D3D9: Enable compilation on Linux. 2022-09-17 19:59:35 -07:00
Бранимир Караџић
7ffeaefad2 API version 116. 2022-09-17 18:18:51 -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
Бранимир Караџић
cbbaba4099 Cleanup. 2022-09-16 19:32:41 -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
Бранимир Караџић
c0a7e838b3 D3D11: Enable texture format enumeration on Linux. 2022-09-15 23:29:27 -07:00
Бранимир Караџић
4faed7cc2b Cleanup. 2022-09-15 22:26:41 -07:00
Бранимир Караџић
4c0baf5603 D3D11: Enable compilation on Linux. 2022-09-15 22:13:34 -07:00
Бранимир Караџић
1fa7570ef8 Fixed DX headers. 2022-09-15 22:07:35 -07:00
Бранимир Караџић
adb4839c63 Updated docs. 2022-09-15 19:13:00 -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
Бранимир Караџић
a88c7629c3 Fixed build. 2022-09-15 09:33:44 -07:00
Бранимир Караџић
9ad3825cee D3D12: Linux build. 2022-09-14 20:59:59 -07:00
Бранимир Караџић
256c8ed532 Cleanup. 2022-09-14 20:57:37 -07:00
Branimir Karadžić
11ac9f27c7 D3D12: Removed dependency on D3DX12 header. 2022-09-13 22:03:20 -07:00
Branimir Karadžić
358f48879a Updated directx-headers. 2022-09-12 20:19:21 -07:00
Бранимир Караџић
cb439deae3 Updated version number. 2022-09-02 08:11:05 -07:00
Бранимир Караџић
12ff3dc2b2 Docs: Addede predefined uniforms. 2022-09-02 08:10:33 -07:00
ichordev
255a19d397
Added Shader Compiler's default defines to the docs (#2911)
* Added shaderc default defines to docs

* Update tools.rst

* Update tools.rst

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2022-09-02 07:08:22 -07:00
Бранимир Караџић
eacf36abb0 Cleanup. 2022-09-01 23:33:24 -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
Бранимир Караџић
963571a31e Cleanup. 2022-08-26 21:46:22 -07:00
Бранимир Караџић
946ba5e968 Updated docs. 2022-08-26 21:44:03 -07:00
Бранимир Караџић
c430f0d90a Updated docs. 2022-08-26 21:41:20 -07:00
Бранимир Караџић
c163482a57 Updated version number. 2022-08-26 21:34:06 -07:00
Бранимир Караџић
750e95f7d0 Cleanup. 2022-08-26 21:32:34 -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
8e94c8c2db
Readme: Update openblack screenshot (#2899) 2022-08-25 21:14:16 -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
Sandy
85910e9778
Add BGR versions of 16 bit formats (#2897)
* pixelformats: Add BGRA4

* pixelformats: Add BGR5A1

* pixelformats: Add B5G6R5

* make idl
2022-08-25 16:08:06 -07:00
Sandy
561e91a62b
opengl: Implement texture swizzle mapping (#2892)
* opengl: Implement texture swizzle mapping

* imageformats: Fix compilation on android

Android GLES does not have a definition for GL_BGR: Swizzle instead.
2022-08-25 06:54:57 -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
Sandy
30f2920ae5
egl: Fix narrowing warning/error (#2891) 2022-08-24 14:31:55 -07:00
云风
8207645355
fix getUniformInfo(), See Issue #2883 (#2885) 2022-08-23 19:53:49 -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
ichordev
e9e9605304
Updated BGFX_PCI_ID docs to reflect GPU priority & added missing enums (#2888)
* Add new BGFX_PCI_ID enums

* Updated BGFX_PCI_ID docs to reflect GPU priority & added missing enums

* Updated bgx.idl; minor corrections; ran GENie
2022-08-23 09:30:01 -07:00
Бранимир Караџић
6cb74deed4 VK: Fixed GPU selection. 2022-08-23 08:28:29 -07:00
云风
75a335f01f
bx::kFloatMin to bx:kFloatSmallest (#2884) 2022-08-23 06:52:52 -07:00
Sandy
536c4cdbf5
Texture format info: Invert R and B in R5G6B5 (#2886)
d3d9: Do software conversion to take advantage of B5G6R5.
d3d11: Do software conversion to take advantage of B5G6R5.
gl: Set internal representation to swap R and B.
metal: Swizzle R and B and remove software conversion.
2022-08-23 06:46:56 -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
Бранимир Караџић
ae7eca02b7 Cleanup. 2022-08-22 20:45:14 -07:00
Бранимир Караџић
5d447dd7f3 Cleanup. 2022-08-22 20:41:35 -07:00
Бранимир Караџић
ad5cc799a4 Added numeric min/max for type. 2022-08-22 20:33:50 -07:00
Branimir Karadžić
89e1e3b14e Fixed warning. 2022-08-22 20:14:42 -07:00