Commit Graph

1078 Commits

Author SHA1 Message Date
bofeng-song 45cf244318 fix eglSwapbuffer error due to eglSurface is not ready (#11083) 2022-05-14 16:23:46 +08:00
Yiwen 12d88974cb fix format feature for Float32 for gles3 and webgl2. (#11084) 2022-05-14 16:05:41 +08:00
pandamicro baafb1f4d3 Revert "V3.5.1 no window (#11016)" (#11071)
This reverts commit bd1c1e0088.
2022-05-14 10:20:44 +08:00
yangchao bd1c1e0088 V3.5.1 no window (#11016) 2022-05-12 09:43:46 +08:00
troublemaker52025 0dc1e9da19 Spotlight interface description change for v3.5.1 (#10964)
* Spot light interface description change for v3.5.1

* fix CI error
2022-05-11 12:00:16 +08:00
troublemaker52025 4bdfacf69f fix instanced model has not spot light shadow for v3.5.1 (#10921)
* fix instanced model has not spot light shadow for v3.5.1

* fix CI error

* fix ci error 2

* fix ci error 3

* fix ci error

* use auto
2022-05-10 19:38:39 +08:00
bofeng-song 7c6a269825 fix android crash due to surface not ready (#10984) 2022-05-07 10:15:23 +08:00
jk20012001 47e0a245a1 fix fog is more brighter with native engine (#10972) 2022-05-06 18:18:43 +08:00
hyde zhou 4f8e25b229 remove long comments (#10959) 2022-05-06 13:41:25 +08:00
hyde zhou f647ca2147 try fix doc problem (#10928) 2022-05-05 19:13:36 +08:00
bofeng-song 29ff3a8749 load libGLESv3.so by default while user choose glesv3 (#10941)
* load libGLESv3.so by default while user choose glesv3
2022-05-05 17:59:46 +08:00
李吉林 560f774671 fix geometry-renderer in deferred pipeline (#10890)
* fix geometry-renderer in deferred pipeline

* fix ESLint error
2022-04-27 10:25:17 +08:00
Yiwen a0387c43fd Remove a unused MEMORY_ALIASING feature. (#10867) 2022-04-25 15:57:13 +08:00
Zeqiang Li 2da44b2b1e fix metal ds index (#10857)
* fix metal ds index

* ds index

Co-authored-by: lyeee <timelyeee@gmail.com>
2022-04-25 11:57:06 +08:00
hyde zhou 61cc6f5fa3 fix debug crash problem (#10854) 2022-04-24 19:03:24 +08:00
hyde zhou 3885efa9f6 fix planar shadow (#10815) 2022-04-20 21:01:57 +08:00
hyde zhou 019d35b22e [V3.5.0 deferred pipeline] fix vulkan crash problem (#10809)
* disable post-process alpha blend

* effects updated

* effects updated

* vk fix added

* disable gles3 fbf

* fix typo

* format and add comments

* add TODO

* fix TODO
2022-04-20 18:26:48 +08:00
timlyeee 65a05558c2 check the existence of depthStencilTexture first. (#10777)
If exist, hash combine
2022-04-20 17:56:20 +08:00
Zeqiang Li d2508691e4 dsiable type validator (#10784)
* dsiable type validator

* add comment

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com.com>
2022-04-16 20:02:41 +08:00
bofeng-song cb75b955bf fix vulkan crash while runing in background (#10775)
* fix vulkan crash while return to background
2022-04-15 10:42:38 +08:00
timlyeee 72bd01f273 Combine hash with validator/agent (#10753)
While the texture is destroyed, the old validator is destroyed and new validator inited.

But framebuffer validator maintains the old one as hash is the same, so when it start the validation check, the old texture validator jumped out and assertion failed.
2022-04-14 21:37:16 +08:00
Zeqiang Li c11221820d disable ds pipeline validation (#10701) 2022-04-11 15:03:49 +08:00
Zeqiang Li 941f165a38 correct statistics (#10667) 2022-04-08 14:42:06 +08:00
James Chen b58929d16e Update external-config.json (#10628)
* Update external-config.json

* Fix typo of include swappy.
2022-04-01 15:11:10 +08:00
Cocos Robot aa207314c9 [ci skip][AUTO]: Automated clang-format update: f6525549bb8bc3e6b8f77af709df345e8d7fe438 (#10621) (#10632)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-01 15:10:44 +08:00
bofeng-song d8bdec5162 fix android crash due to eglSurface unavailable (#10621)
* skip setRendererAvailable &  isRendererAvailable (#10482)

* fix android crash due to eglSurface unavailable
2022-04-01 14:52:46 +08:00
Zeqiang Li de1c34a6b0 fix donknownwho's typo : ( (#10532) 2022-03-28 00:09:48 +08:00
Yiwen 718ea8ee3f Add a method to select mipmap range for Texture2D and TextureCube. (#10500)
* Add a feature to select mipmap range to image asset.

* fix format

* fix format

* modify comments, remove uncessary methods

* finx comments.

* fix logic problem

* fix mipmap range problems

* Add validation information incase someone wants to generate mipmap for compressed texture

* remove some validations to make gfx bakend clear

* fix a stupid typo

* Add validation information for setMipRange

* use assertID to validate the mipmap range
2022-03-27 13:52:24 +08:00
hyde zhou 60a3704955 partial specialization (#10525) 2022-03-26 21:53:33 +08:00
Zeqiang Li 723c223b01 shader optimization always on (#10483) 2022-03-25 13:50:38 +08:00
Cocos Robot da2bb3c5db [ci skip][AUTO]: Automated clang-format update: f9971a5a25b7a78c29f81b633160a7b55ee1cc97 (#10327) (#10478)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-24 18:02:46 +08:00
Zeqiang Li e64301ad34 3.5.0 swappy (#10327)
* gles2/3 swappy
* vk swappy
* manually fallback in GL

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com.com>
2022-03-24 15:37:38 +08:00
Yun Hsiao Wu 7aaac3c6b7 bypass job system creation if possible (#10308) 2022-03-21 11:23:21 +08:00
Cocos Robot 30b7591b28 [ci skip][AUTO]: Automated clang-format update: 508dd40734e2e9e59a002f0f79482bf2831ad5d9 (#10359) (#10378)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-17 11:08:26 +08:00
Zeqiang Li 6cdaf450e3 fix crash by incorrect hash ---- autotest (#10359)
* fxi crash by incorrect hash
2022-03-17 10:12:51 +08:00
timlyeee bb62e41c40 fix crash when app jump to camera (#10255) 2022-03-08 09:42:23 +08:00
Cocos Robot 25399bc1a9 [ci skip][AUTO]: Automated clang-format update: bbb83c366fce82c1d817e53907a8cdffdccd5b41 (#10096) (#10224)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-02 10:18:31 +08:00
Yiwen b2ec8b022f select mipmap levels dynamically (#10096)
* draft

* fix some stupid bugs introduced in the lase commit

* fixed bug when init webgl's texture.

* draft

* fix some bugs

* fix some warnings

* fix undefined type cast

* For Vulkan device, query the storage feature through optimal tiling instead of linear tiling.

* fix some bugs appear when resize texture, clean the changes. all tests passed.

* remove debug codes, improve performance, correct the framebuffer size.

* make some input parameters readonly

* Make the gfx function's parameter's access priority the same as native engine

* remove uncessary members and interface for ES3, move getGLSampler into IWebGL2GPUSampler, delete WebGL2CmfFuncCreateSampler...
2022-03-02 10:15:34 +08:00
minggo a5c138be50 Revert "fix misuse of drawAPI on metal (#10195)" (#10213)
This reverts commit 75d96e6de4.
2022-03-01 14:53:35 +08:00
Zeqiang Li d31520c10b v3.4.2 -> V3.5.0 (#10199)
* 3.4 wgpu rebase (#4208)

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com.com>

* spirv incorrect name on binding (#4259)

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com.com>
2022-03-01 09:55:52 +08:00
Zeqiang Li 75d96e6de4 fix misuse of drawAPI on metal (#10195) 2022-02-28 09:57:23 +08:00
timlyeee f175150b6c Cherry pick from v3.4.2 (#10182)
* supply a default context when surface destroyed (#4222)

* Fix loop audio would stop for ios system (#4254)

* IOS system has an uncertain state between foreground and background, and our condition sometimes miss the point to load buffers.
* Queue for 3 buffers might be too short to live, use 4 or even more instead.

* Use same mtx for write (#4220)
2022-02-25 13:52:31 +08:00
troublemaker52025 e723e5aa3a Add renderMesh bias for v3.5.0 (#10102)
* Add renderMesh bias for v3.5.0

* fix ci error

* change function name

* fix merge error

* update

* update 2

* update

* update

* update 2
2022-02-24 23:27:09 +08:00
yangchao e9e47b9dba do not create window in server mode (#10161)
* add no window impl
* add empty win impl file
2022-02-24 14:41:04 +08:00
Yun Hsiao Wu 5dab5da5bf vk: fix android 12 crash (#10158) 2022-02-23 11:23:17 +08:00
Yun Hsiao Wu 198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +08:00
Yun Hsiao Wu 2902e37d52 more validations (#4230) 2022-02-08 10:31:29 +08:00
Yiwen 8e81f9cfdb add a new interface to query format feature info (#4169)
* create a seperated branch to solve the Issue 8203

* Add format feature for query

* fix bugs and add formatFeature info for metal backend.

* 1. fix some bugs; 2. correct some condition judgements; 3. remove some uncessary comments;

* fix a bug of textureExclusive, fix some typos.

* clean the code, correct some formatFeatures.

* fix bugs in metal backend, fix bugs found on windows.

* Use a proper log funciton in DeviceValidator. Fix code format.

* fix perfect-forwarding in CondVar interface
2022-01-25 19:02:33 +08:00
minggo f08555248f fix conflict 2022-01-24 17:23:03 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00