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
pezcode
d7a8e50d26
Fix resource register macro expansion ( #2747 )
...
The preprocessor library (fcpp) has issues with ## and doesn't expand
properly. We can work around that by using the [reg] syntax which is
supported for all shader targets that internally use HLSL through glslang.
2022-03-22 20:47:29 -07:00
Alexander
6a1809baa2
Use depth in default sort mode ( #2744 )
...
submit param _depth is no longer ignored when using default sort mode
2022-03-14 08:58:59 -07:00
Branimir Karadžić
da9e2f0400
D3D12: Fixed texture array update.
2022-03-05 16:44:56 -08:00
Christophe Dehais
6c9248914e
Fix leaked FBO for depth/stencil only view ( #2738 )
2022-03-04 09:48:50 -08:00
Бранимир Караџић
ae7aeba72c
GL: Fixed vertex layout binding.
2022-02-25 17:21:55 -08:00
Bruno Croci
4f3328edb3
Added textureCube macro for GLSL >= 130. ( #2728 )
...
`textureCube` requires extension `GL_NV_shadow_samplers_cube`, however `texture` can sample a cube sampler without the extension.
2022-02-21 19:41:28 -08:00
Бранимир Караџић
3d4bd88c06
Updated version number.
2022-02-12 10:01:31 -08:00
Kitchen
e42fe374c3
fix only msaa depth texutre in frame buffer error on iOS platform ( #2725 )
2022-02-09 06:29:14 -08:00
pezcode
4b04a8ced8
Vulkan: replace deprecated version macros ( #2721 )
2022-02-06 17:32:03 -08: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
Бранимир Караџић
9f04292f40
Metal: Fixed texture creation.
2022-01-30 20:18:48 -08:00
Fabio Soldati
4a922e34da
Fixed wrong comparison of maxTextureSize ( #2718 )
...
Co-authored-by: Fabiz <info@peakfinder.org >
2022-01-30 08:14:19 -08:00
Бранимир Караџић
134d1787e7
Updated version number.
2022-01-15 18:03:14 -08:00
Бранимир Караџић
4581f14cd4
Happy New Year!
2022-01-15 11:59:06 -08:00
ShuangLiu1992
a6511598db
Update glcontext_nsgl.mm ( #2705 )
...
[glContext update]; and [glContext setView:glView]; always needs to be called from main thread
2022-01-07 07:55:53 -08:00
Бранимир Караџић
af68e138fe
Cleanup.
2021-12-31 09:43:21 -08:00
Бранимир Караџић
99a7af712f
Added more info about transparency sort table.
2021-12-26 09:21:02 -08:00
Бранимир Караџић
0755f50fd2
Fixed #2690 .
2021-12-20 16:59:13 -08:00
Ravbug
ffc66a4c3c
Fix use of constant only available on macOS 12+ ( #2689 )
2021-12-20 13:41:03 -08:00
Бранимир Караџић
949142a75f
Metal: Added GPU vendorId/deviceId detection. Fixed #2688 .
2021-12-19 23:11:33 -08:00
Aleš Mlakar
457cdf6db5
MTL: Use default frame latency if 0 provided ( #2680 )
...
Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com >
2021-12-07 08:54:45 -08:00
Cedric Guillemet
64a28415a8
Disable Batch indirect mode for Microsoft WARP ( #2672 )
...
* Disable Batch indirect mode for Microsoft WARP
* idl
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com >
2021-12-01 11:19:47 -08:00
Christophe Dehais
c0729cb09b
Use m_gles3 flag more extensively (instead of compile-time ES version) ( #2665 )
2021-11-19 07:26:47 -08:00
Christophe Dehais
08cd17e3b8
Check if gl_Frag[Data/Color] are not already patched ( #2661 )
2021-11-18 13:12:38 -08:00
Cedric Guillemet
77f36d79cc
no more optional param for bx:write ( #2662 )
...
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com >
2021-11-18 13:10:59 -08:00
Бранимир Караџић
2cdba37415
GL: Fixed update surface size when texture is transcoded.
2021-11-11 20:00:18 -08:00
Branimir Karadžić
da8a5ff449
VK: Fixed update surface size when texture is transcoded.
2021-11-11 17:39:41 -08:00
Branimir Karadžić
67d1cce8f8
D3D1x: Fixed update surface size when texture is transcoded.
2021-11-11 15:46:29 -08:00
Christophe Dehais
65ae59a82b
Fix 3D blit test ( #2651 )
...
bi.m_depth == 1 for usual 2D blit
2021-11-08 09:44:16 -08:00
Бранимир Караџић
6d1791ae2c
Cleanup.
2021-11-04 06:53:08 -07:00
Бранимир Караџић
fab6e8409b
Cleanup.
2021-11-01 18:53:06 -07:00
Бранимир Караџић
5fd83e7a41
Added BGFX_TEXTURE_BLIT_DST validation.
2021-11-01 18:27:20 -07:00