Commit Graph

3216 Commits

Author SHA1 Message Date
Бранимир Караџић
280cae73af VK: Fixed swizzle macro. 2022-08-19 10:57:49 -07:00
Бранимир Караџић
67f27573b9 Cleanup. 2022-08-19 10:40:00 -07:00
Branimir Karadžić
b35b3fa2a7 Fixed dynamic buffer leak. Issue #2867. 2022-08-19 09:51:23 -07:00
Бранимир Караџић
8abb86801f Cleanup. 2022-08-18 21:14:35 -07:00
Бранимир Караџић
51f89e3510 VK: Made swizzle component table more readable. 2022-08-18 20:43:59 -07:00
Branimir Karadžić
0363560934 Added depth MSAA texture validation. Issue #2862. 2022-08-17 17:00:21 -07:00
Бранимир Караџић
2449610af7
Revert "Resolve texture format correctly on D3D11/D3D12 (#2859)" (#2865)
This reverts commit 8358bf6ecf.
2022-08-17 16:44:30 -07:00
Julian Xhokaxhiu
8358bf6ecf
Resolve texture format correctly on D3D11/D3D12 (#2859)
* D3D12: Fix ResolveSubresource texture format parameter

For depth textures this always returned the TYPELESS one, but instead it should have passed the FLOAT.

* D3D11: Fix ResolveSubresource texture format parameter

For depth textures this always returned the TYPELESS one, but instead it should have passed the FLOAT.
2022-08-09 11:37:44 -07:00
Cedric Guillemet
6aad365c9e
Enable MSAA setting at context creation for Android (#2854) 2022-08-04 06:51:38 -07:00
Cedric Guillemet
bedab93431
Fix D3D12 InputSlot when having streams w/ instances (#2853) 2022-08-03 08:02:03 -07:00
Бранимир Караџић
484a5f0c25 Updated version number. 2022-07-23 10:59:37 -07:00
Бранимир Караџић
e34ae05cdf Cleanup. 2022-07-19 10:36:18 -07:00
Бранимир Караџић
9022ffcb64 Add warning when calling RESET with unusupported feature. 2022-07-18 19:25:50 -07:00
Cedric Guillemet
a3d52fab32
premultiplied backbuffer for UWP/SwapchainPanel (#2837)
* premultiplied backbuffer for UWP/SwapchainPanel

* init flag

* caps and feedback/opengl premul

* reduced #ifdef form

* removed ifdef
2022-07-18 09:23:57 -07:00
luzpaz
e7936efa6a
Fix typos (#2839)
Found via `codespell -q 3 -S ./3rdparty,*.ttf -L attribut,ba,clude,conly,indext,inout,lod,nclude,retur,struc,unknwn,utput`
2022-07-12 14:21:31 -07:00
Бранимир Караџић
f06d7257b2 Fixed docs. 2022-07-11 05:45:02 -07:00
Бранимир Караџић
d0a4672307 Cleanup. 2022-07-10 23:26:39 -07:00
Бранимир Караџић
c066251750 Cleanup. 2022-07-10 20:46:11 -07:00
Бранимир Караџић
32192450c4 WebGL2: Fixed missing glReadBuffer import. 2022-07-10 19:03:28 -07:00
bdunkin
f9ab3b5c68
Increase the buffer size if necessary before adding markers (#2838) 2022-07-08 11:46:03 -07:00
Gary Hsu
db44d5675f
Fixes when running in WinRT (#2827)
* Use ResizeBuffers for WinRT

* Set maximum frame latency for WinRT

* Remove extra space
2022-06-23 22:13:38 -07:00
Бранимир Караџић
a153458735 Cleanup. 2022-06-20 05:58:22 -07:00
Cedric Guillemet
607a775009
FS Quad/MSAA for GLES3 (#2820) 2022-06-15 07:44:25 -07:00
Cedric Guillemet
f0cf1794e7
Fix MSAA with ARM Mali OpenGL ES (#2818)
* Fix MSAA with ARM Mali OpenGL ES

* indenting
2022-06-15 03:35:19 -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
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
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
Ravbug
e7fdfa73c1
Add support in Metal and Vulkan for [earlydepthstencil] (#2764) 2022-04-07 09:42:04 -07:00
Бранимир Караџић
5404a29540 Updated version number. 2022-04-06 18:54:03 -07:00
Miguel Ángel
5ae2271667
Replaced VK_FORMAT_D24_UNORM_S8_UINT with the more supported VK_FORMAT_D32_SFLOAT_S8_UINT (#2755)
Co-authored-by: Miguel Ángel Pérez Martínez <miguel_angel_perez_martinez@not_an_email.com>
2022-04-01 07:27:42 -07:00
Бранимир Караџић
f86499b726 Updated version number. 2022-03-31 18:42:28 -07:00
Christophe Dehais
f44818b548
Import glDrawBuffers() from WEBGL_draw_buffers extension (#2667) 2022-03-31 18:27:24 -07:00
James Fulop
d9cdc67993
add missing semicolon (#2751) 2022-03-30 07:26:40 -07:00
Sandy
251e35ae09
Fixes for shader texture array in GLES3 (#2750)
* opengl: use texture for texture2DArray

* shaderc: Add default precision for sampler2DArray on GLES3
2022-03-29 13:14:21 -07:00
Sandy
c0cbaf2a43
gl: Get maxTextureLayers on versions 3.0 and up (#2749) 2022-03-29 10:57:33 -07:00