Commit Graph

8270 Commits

Author SHA1 Message Date
Бранимир Караџић
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
9204a536dd
Fixed indentation on zig wrapper functions and converted to uppercase 2D/3D (#2809) 2022-05-29 07:50:14 -07:00
Бранимир Караџић
664bb5ca21 39-assao: Rebuilt spir-v shaders. 2022-05-25 09:24:31 -07:00
Catalin Moldovan
f0741047d8
more idiomatic zig bindings (#2804) 2022-05-22 18:43:03 -07:00
Бранимир Караџић
3d5d59e08c Updated vulkan headers. 2022-05-21 18:47:41 -07:00
Бранимир Караџић
f294ee6858 Updated spirv-cross. 2022-05-21 18:47:14 -07:00
Бранимир Караџић
6bbda98efa Updated spirv-tools. 2022-05-21 18:47:06 -07:00
Бранимир Караџић
a883ee37c3 Updated glslang. 2022-05-21 18:46:55 -07:00
Бранимир Караџић
b8091498a3 Updated ImGui. 2022-05-21 18:06:58 -07:00
Бранимир Караџић
24765f8967 Cleanup. 2022-05-21 18:02:37 -07:00
Бранимир Караџић
05b9355ac2 Discard state before touch. Fixed issue #2803. 2022-05-21 08:48:24 -07:00
Branimir Karadžić
8e7774f735 Fixed build. 2022-05-17 11:30:10 -07:00
Julian Xhokaxhiu
89ae74122c
OpenGL: Enable sRGB texture format support for BC7 (#2800) 2022-05-17 10:54:37 -07:00
Бранимир Караџић
6601b01430 Cleanup. 2022-05-17 07:07:10 -07:00
Alexander Knorre
7b1d6a98a9
Compute kSortKeyViewNumBits automatically. (#2796)
Compute kSortKeyViewNumBits automatically via log2(BGFX_CONFIG_MAX_VIEWS), so that we could change BGFX_CONFIG_MAX_VIEWS to be above 2^10 = 1024 without changing the `bgfx` source code.
One possible problem with this approach is running out of bits, so maybe we could assert for that, I am not sure where to do it and how many bits we can use though.
Using `bx::uint32_cntlz` because `bx::log2` is not constexpr.
Tested on linux opengl with BGFX_CONFIG_MAX_VIEWS=4096, seems to work.
2022-05-15 19:24:53 -07:00
Бранимир Караџић
36be8a72cc Fixed blit key encoding. 2022-05-14 21:26:20 -07:00
Бранимир Караџић
ae5706693f Cleanup. 2022-05-13 17:41:30 -07:00
Бранимир Караџић
8274f8a6e2 Updated vulkan headers. 2022-05-08 09:43:45 -07:00
Бранимир Караџић
189b020b90 Updated spirv-cross. 2022-05-08 09:43:45 -07:00
Бранимир Караџић
557b9743fb Updated spirv-tools. 2022-05-08 09:43:45 -07:00
Бранимир Караџић
4dbb926746 Updated spirv-headers. 2022-05-08 09:43:45 -07:00
Бранимир Караџић
70732ad420 Updated glslang. 2022-05-08 09:43:45 -07:00
Бранимир Караџић
71fc5457e6 Updated cgltf. 2022-05-08 09:43:44 -07:00
slewicki
bd8ed86009
Changed WGL_STENCIL_BITS_ARB to match what gets used in createContext (#2791)
On Mesa, the pixel format would match the 0 stencil bits as requested. This change helps bring the pixel format to match what `createContext` would use.
2022-05-06 09:21:05 -07:00
Бранимир Караџић
560669f6c0 Cleanup. 2022-05-02 08:50:47 -07:00
Бранимир Караџић
379fc707ff Updated README. 2022-05-01 08:10:39 -07:00
Branimir Karadžić
fe8cab2522 Manually merged PR #2710. 2022-04-26 19:15:15 -07:00
Бранимир Караџић
b8fdc3f8be Cleanup. 2022-04-25 21:13:29 -07:00
Kitchen
35c27cda3d
Metal merge texture format (#2785)
* need check texture format is support read/write

* move read write check to s_textureFormat

* add check BGFX_CAPS_IMAGE_RW

* remove custom read write mask as MTLReadWriteTextureTier

* remove ReadWriteTierMask struct
2022-04-25 19:21:20 -07:00
Бранимир Караџић
ed5e2694dc Cleanup. 2022-04-25 07:19:18 -07:00
Kitchen
f76b678bef
support Metal renderer to auto generate mipmap for render target (#2784)
* support render target auto generate mipmap

* move autoGenMipmap check to s_textureFormat table
2022-04-25 07:11:14 -07:00
Sami Kyöstilä
09d8c34e34
GL: Properly reset FBO after emulated blit (#2782)
Reset the previously bound FBO after rendering an emulated blit instead
of binding the default framebuffer.

Co-authored-by: Sami Kyöstilä <sami.kyostila@unrealvoodoo.org>
2022-04-23 07:25:46 -07:00
Kitchen
33dd76eab5
fix metal renderer set image bug (#2779)
* fix metal renderer set image type bug

* add Binding::Image access check

* move s_accessNames outside of scope
2022-04-22 06:56:35 -07:00
Kitchen
2568ce7311
fix image is not set in pipeline state object in metal renderer (#2780)
* always set pipeline state object 'm_bindingTypes' when argument is texture

* fix the typo error casue cash
2022-04-21 20:11:37 -07:00
TooMuchVoltage Software Inc
f6e0db1969
Fixing shadow2DProj in GLSL (#2775)
Removing erroneous extra bracket for aliasing shadow2DProj in GLSL. Would have caused compilation failure if used.
2022-04-20 06:33:17 -07:00
云风
676df636d2
rename rearrangeIndices() to remapIndices() (#2773) 2022-04-18 17:37:29 -07:00
云风
c6d66c2483
bugfix and remove mergeIndices() (#2772) 2022-04-18 12:57:25 -07:00
云风
cae7c83f89
bugfix : weldVert and array_push (#2769) 2022-04-15 07:22:43 -07:00
Jared Miller
c084dd2616
Update Zig binding generation (#2765) 2022-04-08 06:41:00 -07:00
Ravbug
e7fdfa73c1
Add support in Metal and Vulkan for [earlydepthstencil] (#2764) 2022-04-07 09:42:04 -07:00
Бранимир Караџић
f3c07a1da6 Cleanup. 2022-04-06 18:55:46 -07:00
Бранимир Караџић
5404a29540 Updated version number. 2022-04-06 18:54:03 -07:00
ichordev
d038172603
Docs update 2B (#2761)
* D binds: expanded enums; added some C++ pre-processor functions

* Updated D bindings files

* Re-updated tools.rst to match tool help output

texturec update next
2022-04-06 04:30:18 -07:00
Бранимир Караџић
5a4db33206 geometryc: Fixed missing quote. 2022-04-05 10:27:21 -07:00
ichordev
7a5fec1580
Documentation update 2 (#2756)
* Reworded & reformatted bgfx.rst for better clarity

* Reworded for clarity; made option format more consistent

* Added one character!

* Updated shaderc help

Will update docs to 100% match soon

* Updated geometryc's help

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2022-04-04 12:57:00 -07:00
Catalin Moldovan
11ba8de2d1
Shaderc console out (#2758)
* Add support to output compiled shader to stdout

* Whitespace formating fixes

* Updated shaderc cli stdout output option to "--stdout"
2022-04-04 12:52:44 -07:00
Бранимир Караџић
cb857c3cd3 Updated docs. 2022-04-03 18:50:04 -07:00
Бранимир Караџић
9dc93eb0b1 Updated IDL bindings. 2022-04-03 18:46:29 -07:00
Бранимир Караџић
822dce26e5 Updated spirv-cross. 2022-04-03 18:45:27 -07:00