Commit Graph

5350 Commits

Author SHA1 Message Date
minggo bd950a509b Merge pull request #11912 from minggo/merge_ds
Merge ds
2022-07-12 09:49:20 +08:00
James Chen e3d0f93460 getGeometryRenderer::update must be wrapped in CC_USE_GEOMETRY_RENDERER macro. (#11928) 2022-07-11 18:57:10 +08:00
troublemaker52025 efada734d6 fix csm effect error at metal v3.6.0 (#11931) 2022-07-11 18:25:01 +08:00
timlyeee 350102a1a9 Fix crash when clicking editbox on some low level windows machines (#11930) 2022-07-11 17:37:50 +08:00
Cocos Robot 33b34b902c [ci skip][AUTO]: Automated code generating update: 391745c8a0d5f002ad8557a4ee77468885ee3c52 (#11919) (#11924)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-11 16:58:18 +08:00
zhakesi 40769330da fix spine/dragonbones drawinfo clear (#11919)
* fix spine/dragonbones drawinfo clear

* fix clang tidy
2022-07-11 16:18:14 +08:00
Zhang mingzhen 731d703648 Mask to native bug fix (#11913)
* mask inverted bug fix

(cherry picked from commit dc695c992983042ca7af3ac91051db40049dfbd1)

* sync customMaterial for commitIA of middleware in native

* fix CI

* remove abundant mask code

* add nolint

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-11 13:43:56 +08:00
bofeng-song dc1ed4c2e7 fix android crash while call restart & orientation changed (#11914) 2022-07-11 11:29:20 +08:00
timlyeee d19aa952a3 [Bug fix] copy v8 dlls for unit test and simulator (#11918) 2022-07-11 11:28:56 +08:00
Cocos Robot a6aa405666 [ci skip][AUTO]: Automated code generating update: c4408f9097481805d861f0bda40856be48e3e72d (#11915) (#11916)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-09 20:06:23 +08:00
James Chen 6cc101f361 Use more const and make Node::getIdxOfChild protected (#11915) 2022-07-09 19:23:03 +08:00
minggo 15eb2aa727 fix merge error 2022-07-09 15:20:29 +08:00
minggo b7558e4938 Merge branch 'v3.5.1-ds' into merge_ds 2022-07-09 15:13:35 +08:00
James Chen 89c49d782a [v3.6] Fix memory leak of memop::Pool::destroy and refactor it. (#11908) 2022-07-09 15:06:52 +08:00
James Chen a079c138c0 [v3.6] Fix memory leak in UIModelProxy.cpp (#11909)
* Fix memory leak in UIModelProxy.cpp

* Format code.

* Update UIModelProxy.cpp
2022-07-09 14:27:24 +08:00
bofeng-song 113fad0259 refine: rename windowHanler to windowHandle, rename onDestory to onDestroy (#11907) 2022-07-09 13:54:18 +08:00
minggo 439e484ada Update readme (#11906)
* add system requirements
2022-07-09 13:40:07 +08:00
Zeqiang Li 192322f836 fix mtlCommandBuffer life cycle inside NSLoop (#11904) 2022-07-09 11:20:21 +08:00
Zhang mingzhen 0560b566df V3.6.0 batcher2d mask to native (#11905)
* native mask 1

* native rect mask part2

(cherry picked from commit 363c6a545302c15bbbd33285c172855e667c308d)

* fix code specification

* mask fillPass parameters

* fix mistake

* fillpass material condition

* mask to native generate batch

* revert wrong remove

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-09 00:57:25 +08:00
James Chen 8623b89992 Fix crash if closing app in SpineAttach test case. (#11901)
* Fix crash if closing app in SpineAttach test case.
2022-07-08 19:45:31 +08:00
Cocos Robot 147fc20978 [ci skip][AUTO]: Automated code generating update: ddc7503735c3bef8cd225e71106ea8f8d358e086 (#11896) (#11902)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-08 19:31:26 +08:00
James Chen cb4b0014ed Fix crash if closing app in surface shader test case. (#11896) 2022-07-08 19:19:35 +08:00
bofeng-song 7c8492c668 remove unneeded code, gameActivity has been ensured the render lifecycle (#11897) 2022-07-08 18:20:38 +08:00
Cocos Robot 50669a4ab2 [ci skip][AUTO]: Automated code generating update: 6fcd56922dfaedd7afbe782e07d4f8ff61781a5e (#11592) (#11898)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-08 17:48:33 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +08:00
James Chen 598ac36113 Fix memory overflow in getDirtyNode (#11890) 2022-07-08 13:35:23 +08:00
Yiwen 00bd0f514d Fix vk validation warning (#11884)
* fix vk offset alignment and es ds reset
2022-07-08 10:13:43 +08:00
Yiwen 778ad062bc add a method to reset the global descriptor's shadow map (#11881)
* add a method to reset the global descriptor's shadow map
2022-07-08 10:10:08 +08:00
timlyeee b43de1af07 V3.6.0 exit (#11856) 2022-07-07 14:07:47 +08:00
timlyeee f6a12b305c Change copy resources logic for v8 dlls (#11876) 2022-07-06 18:34:39 +08:00
Yiwen 359ae855a5 record original queues if the sort function is not invoked. (#11871)
* record original queues if the sort function is not invoked.

* re-enable the instance queue's sort fucntion

* fix es lint
2022-07-06 16:16:29 +08:00
Cocos Robot 6da98e70c3 [ci skip][AUTO]: Automated code generating update: 90f6b7c37a51f4c5b0c954cbb5ec7cfd7fd28a41 (#11864) (#11866)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-06 10:14:27 +08:00
James Chen ba4a98a71c Keep the struct in cc::Rect the same as which in ts (#11864)
Co-authored-by: Yiwen <15225434259xue@gmail.com>
2022-07-06 09:54:24 +08:00
Yiwen 83cfd5c401 use the original order to fix the instance lighting and casting shadows (#11865) 2022-07-06 00:00:16 +08:00
Yiwen cca281e483 fix copybufferstotexture (#11860)
* fix copybufferstotexture
2022-07-05 22:24:23 +08:00
timlyeee 91b0f34d9a Fix windows crash when first entering into AudioBuffer scene (#11859) 2022-07-05 21:40:18 +08:00
James Chen a5cdfe2511 fixed #11692: [jsb] More SE_BIND_FUNC_FAST binding for Node transform relevant API (#11854)
* fixed #11692: [jsb] More SE_BIND_FUNC_FAST binding for Node transform relevant API

* Format code
2022-07-05 18:01:28 +08:00
mmyduckx cf346b6e39 add Scene load event when scene::load (#11807) 2022-07-05 16:36:08 +08:00
James Chen b871eb1086 Clear shader source after they're uploaded to GPU. (#11781) 2022-07-05 16:06:54 +08:00
Yiwen f09168ce1b Add a basic sort function for RenderInstancedQueue. (#11193)
* fix instancing draw order
2022-07-05 15:44:08 +08:00
黄森斌 67e9aa1f33 V3.6.0 allow multiple custom scripts exist in project with one same className (#11763)
* use getClassById instead of _getClassById

* use getClassId instead of _getClassId

* public cc.js.getClassId api

* allow className already exists, new one will replace old classObject

* create component use cid

* allow className exist when registing

* custom script className allow duplicated

* revert some comments

* preserve api and deprecate _getClassById and _getClassId

* revert some comments

* revert comment

* Update cocos/core/utils/js-typed.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-07-05 15:19:56 +08:00
minggo 54fc7be53f do not use align malloc (#11844)
c++17 supports create an aligned struct
2022-07-05 14:30:12 +08:00
Cocos Robot c5ad77de1b [ci skip][AUTO]: Automated code generating update: e821e0635bef9292af69fb0dc83b2a0a76f99153 (#11845) (#11848)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-05 13:46:43 +08:00
James Chen e41ec8b765 Fix binding of Node.inverseTransformPoint. (#11845) 2022-07-05 13:33:25 +08:00
Cocos Robot e4bf531cbe [ci skip][AUTO]: Automated code generating update: 5795fbc0125abd629c53786120d260a900b4944e (#11842) (#11846)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-05 11:48:41 +08:00
Yiwen d1e141990b fix camera jsb (#11842)
* fix camera jsb
2022-07-05 11:38:11 +08:00
Yiwen 8d4b6cbc96 fix the device crach appeared when the device fallback is performed (#11818)
* fix the device crach appeared when the device fallback is performed

* Fix crash on SM-9005 (#2)

Co-authored-by: James Chen <dumganhar@gmail.com>
2022-07-05 09:56:46 +08:00
James Chen b6deb4ac91 [android] Use optimized compile and link flags to make shared library file (.so) smaller (#11792) 2022-07-04 17:35:41 +08:00
Cocos Robot 7b35d087a7 [ci skip][AUTO]: Automated code generating update: eb24b005f98a42ea87baccf07013cd85bf77d52b (#11775) (#11834)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-04 17:11:32 +08:00
James Chen 9fdfb687e2 Mesh supports half float format and the data can be deleted
1. Add support for converting float to half from some vertex attributes at runtime; 
2. Add Mesh.allowDataAccess property for releasing data after it is uploaded to GPU
2022-07-04 16:59:51 +08:00