Commit Graph

6141 Commits

Author SHA1 Message Date
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
qiuguohua b615b2c672 Add openharmony platform definition (#14617)
* Add openharmony platform definition
2023-03-22 16:11:51 +08:00
James Chen 756dbb736d Fix GlobalObject.runOnUiThread, keep the same logic as Activity.runOnUiThread. (#14616)
If we didn't fix this, ANR will be triggered in WebView test. But I think CocosWebView implementation is wrong.
Currently, CocosWebView.ShouldStartLoadingWorker.run is invoked in UI thread. latch.await is also called in UI thread, which is really dangerous and easily causes infinite waiting.
2023-03-21 16:26:16 +08:00
James Chen 937eb10402 [android] Remove dependence of Activity, prepare for surface-less rendering (#14612)
* Use `context` instead of `activity` as possible.

* Remove unused JniNativeGlue.h include.

* Remove unused import.

* Update JniHelper.h/.cpp, JniHelper::sActivity -> JniHelper::sContext.

* Fix log output name in CocosHelper.java

* Rename the second parameter JniHelper::init from `activity` to `context`.

* Update todo in JniHelper::getActivity()
2023-03-21 11:54:23 +08:00
Cocos Robot 42a576e81f [ci skip][AUTO]: Automated code generating update: d4378c629b12f840c759777138ee8ffba4d359a5 (#14582) (#14607)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-03-20 15:20:19 +08:00
qiuguohua e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00
qiuguohua dfc34690e0 Fix the problem of mac system crashing on exit (#14603) 2023-03-20 10:47:00 +08:00
minggo cbadcf20f5 Merge pull request #14576 from cocos/v3.7.2
V3.7.2
2023-03-15 11:05:16 +08:00
Zeqiang Li c86934fcbd split barrier fix & collect undefined layout before bfs (#14569) 2023-03-14 23:24:03 +08:00
江战 cfb0b74c4e Fix pass properties order in native editor (#14468)
* fix pass properties order in native editor
2023-03-14 10:26:00 +08:00
Cocos Robot bccd65fbd9 [ci skip][AUTO]: Automated code generating update: 2ff383c2bb (#14558) (#14563)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-03-14 09:59:13 +08:00
santy-wang 966c55496d add missing ignore 2023-03-13 16:58:48 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
李吉林 9538714d1b add moveTowards & rotateTowards (#14543) 2023-03-13 10:00:39 +08:00
Yiwen b6abb65171 Math tune cpp (#14526)
* fix problem, add missing functions for vec4

* add unit test for math lib, review geom lib, fix comment, clean code

* revert changes on native math lib

* fix typo, cancel deprecates

* fix csm layer frustum usage

* tune document

* restore native changes

* stage math

* correct frustum

* add more unit test

* fix mistakes introduced in the last commit

* add missing changes

* update

* update deprecated information, rename interfaces

* fix operator priority issue

* fix math library related issues
2023-03-12 15:58:07 +08:00
oahc09 2ff383c2bb feat:xr add register_all_xr_extension (#14535) 2023-03-10 14:57:59 +08:00
江战 1854ae46b2 Resolve certain warning messages on Visual Studio (#14527)
* Resolve certain warning messages on Visual Studio
2023-03-10 14:17:34 +08:00
江战 ad1558d321 fix external include path (#14491) 2023-03-09 18:25:49 +08:00
hyde zhou 6ed4719968 pipeline update (#14486)
* adding queue phase

* adding per phase descriptor set

* adding render phase descriptor set

* Optimize memory usage and rendering time of WebPipeline (#106)

* Pass ubo execution optimization (#107)

* adding compute shader

* add compute shader

* add compute dispatch

* add compute shader

* adding subpass

* add dummy web subpass builder

* remove present pass

* remove present pass

* adding subpass to RenderGraph

* fix unit test

* lint fix

* fix lint

* adding raster subpass

* native subpass builder added

* Complete render phase to layoutgraph (#108)

* rename RasterTag to RasterPassTag

* rename ComputePass to Compute

* subpassGraph added

* add shading rate attachment

* fix typo

* RenderSwapchain default constructible

* Optimize Execution Memory (#110)

* add storage buffer/texture support

* add storage buffer and shading rate texture

* fix lint

* fix typo

* V3.7.2 pipeline (#109)

* fix merge conflict

---------

Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
2023-03-09 17:57:05 +08:00
troublemaker52025 6a0fe8056f Synchronize groundLightingColor settings (#14509) 2023-03-09 17:56:20 +08:00
jk20012001 7eb5fad4ad fix native engine code different with ts engine (#14504) 2023-03-09 17:55:42 +08:00
Zeqiang Li e08e0fca08 metal sync logic (#14518) 2023-03-09 15:09:24 +08:00
Cocos Robot b5bcbfeaba [ci skip][AUTO]: Automated code generating update: 9eb7ea8baeeb09a5ef3759c2320735aecd8800f5 (#14510) (#14517)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-03-09 10:24:41 +08:00
江战 c4be6be29d Fixes for GCC compatibility and Linux platform warnings (#14511)
* fix compile error on linux

* ignore more warnning

* move StringPool & StringEqual into StringPool
2023-03-09 09:45:22 +08:00
Myway 879668c64f support highp lightmap for native engine (#14510)
* support highp lightmap for native engine
fixed camera exposure uniform error

* fixed lint error
2023-03-08 20:23:19 +08:00
James Chen b7cec161c6 fixed #14473: [native] Remove 'Record' macro to avoid conflict. (#14474)
* fixed #14473: [native] Remove 'Record' macro to avoid conflict.
2023-03-07 13:57:34 +08:00
Cocos Robot d322cd42f6 [ci skip][AUTO]: Automated code generating update: 13a14316cc495642fb2dbd3c277b196dfdea6d11 (#14490) (#14496)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-03-07 13:57:13 +08:00
bofeng-song 57eb6c6164 Repair the problem that setWritablePath does not take effect after setting (#14490)
* Repair the problem that setWritablePath does not take effect after setting
2023-03-07 13:51:18 +08:00
江战 a6684b18c9 Merge _flagChangeVersion and _hasChangedFlags, Use Single uint32_t to Save Memory and Avoid Inconsistencies (#14454)
* merge _flagChangeVersion & _hasChangedFlags into single uint32_t
2023-03-07 10:27:51 +08:00
江战 a4154d16f3 Fix console.log output for objects by calling toString() method (#14457) 2023-03-06 14:15:03 +08:00
李吉林 e5fe41fbdd remove abs from rhw in transformMat4 (#14483) 2023-03-06 11:03:27 +08:00
Cocos Robot c963d5e11f [ci skip][AUTO]: Automated code generating update: 4ae86b89aa8adda35e8b58cfe147709356a05794 (#14458) (#14466)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-03-06 09:50:39 +08:00
Zeqiang Li 5763763fba tex copy for private mem (#14460) 2023-03-03 18:01:57 +08:00
李吉林 f4e8b1e03a fix cpp math library (#14458)
* fix cpp math library
2023-03-03 17:33:33 +08:00
江战 010245457d Fix setScriptObject may hold a destroyed se::object (#14437) 2023-03-03 10:28:18 +08:00
ChiaNing 892e720a35 fix windows font size bug (#14448) 2023-03-03 09:39:07 +08:00
Zeqiang Li 555eb26b8a metal buffer view sync & buffer view alignment (#14438)
* metal buffer view sync

* metal buffer view sync

* buffer view alignment

* potential issue
2023-03-02 17:14:01 +08:00
fqamic 973ccf73ff feat: update xr templates and engine external version (#14439) 2023-03-02 16:25:07 +08:00
fqamic cfd33bc12c feat: remove xr library, new xr library is in the xr plugin since version 3.7.2 (#14428) 2023-03-02 10:18:18 +08:00
bofeng-song 5afcfddca7 fix wrong logic for calculate distance (#14429) 2023-03-02 09:57:19 +08:00
Zach Lee 773a09d855 fixed GLES2 DepthStencil renderbuffer binding issue. && BufferView alignment issue. (#14424) 2023-03-02 00:14:59 +08:00
hyde zhou 2d9446e7c4 add render phase (#14333) 2023-03-02 00:13:38 +08:00
ChiaNing ad09bd6e65 Fix the bug that drawCall is still submitted when opacity is 0 (#14381)
* Fix the bug that drawCall is still submitted when opacity is 0

* use approx
2023-03-01 18:04:41 +08:00
Cocos Robot d8e343c4b0 [ci skip][AUTO]: Automated code generating update: d27106a8017fa4f854ae0da7954578c9ee05f572 (#14421) (#14422)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-03-01 18:04:28 +08:00
zhakesi a995ea9f24 fix spine jsb binding for export attachment attributes (#14421) 2023-03-01 15:49:42 +08:00
oahc09 2a3904d723 feat:pass cocos engine version parameter to xr library (#14413) 2023-03-01 13:51:46 +08:00
Cocos Robot 9a6b619b88 [ci skip][AUTO]: Automated code generating update: f1012db60817063ce28ba783f058bc7b502ef525 (#14407) (#14411)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-02-28 18:15:41 +08:00
troublemaker52025 056fda3e6a [Bug] fix deferred pipeline dir-light effect error (#14407) 2023-02-28 17:56:43 +08:00
Zeqiang Li 71b764ad0d frame fence (#14310) 2023-02-28 17:43:38 +08:00
ChiaNing a769f3fb5a change node dirtyFlag name & add interface (#14396)
* change node dirtyFlag name & add interface
2023-02-28 13:47:23 +08:00